Kernel: due to performance and real hardware testing reasons, put syscall logging and e9 behind compile time options

This commit is contained in:
Matheus
2023-07-05 19:48:32 -03:00
parent b75d634339
commit e662d52a73
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -3,11 +3,15 @@
// TODO compile time options for disabling output to port e9h
void arch_e9_putc(char c) {
#ifdef X86_64_ENABLE_E9
outb(0xe9, c);
#endif
}
void arch_e9_puts(char *c) {
#ifdef X86_64_ENABLE_E9
while (*c) {
outb(0xe9, *c++);
}
#endif
}