diff options
author | Marvin Borner | 2021-02-25 17:42:46 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-25 17:42:46 +0100 |
commit | 34885f1c73824a0fe47aa095e9d55a57021239d2 (patch) | |
tree | b59dfe47069d1f42bd8123e647fadf74bff835a6 /libc/serial.c | |
parent | b85ba196c47920b9d1b6622718a34f8f6f23bef3 (diff) |
Added *many* static keywords
Diffstat (limited to 'libc/serial.c')
-rw-r--r-- | libc/serial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/serial.c b/libc/serial.c index 28de140..62263fb 100644 --- a/libc/serial.c +++ b/libc/serial.c @@ -2,6 +2,7 @@ #include <cpu.h> #include <def.h> +#include <serial.h> #include <str.h> void serial_install() @@ -15,12 +16,12 @@ void serial_install() outb(0x3f8 + 4, 0x0B); } -int is_transmit_empty() +static int is_transmit_empty() { return inb(0x3f8 + 5) & 0x20; } -void serial_put(char ch) +static void serial_put(char ch) { while (is_transmit_empty() == 0) ; |