summaryrefslogtreecommitdiff
path: root/driver/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/serial.c')
-rw-r--r--driver/serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/serial.c b/driver/serial.c
index 4e43251..16b3b6c 100644
--- a/driver/serial.c
+++ b/driver/serial.c
@@ -1,3 +1,5 @@
+#ifndef FOOLOS_LOG_OFF
+
#include "serial.h"
#include "asm_x86.h" // provides x86_inb() and x86_outb()
@@ -36,3 +38,5 @@ void serial_write(uint8_t a)
while (is_transmit_empty() == 0);
x86_outb(PORT,a);
}
+
+#endif