summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/tty/serial.c
diff options
context:
space:
mode:
authordzwdz2021-09-21 18:37:01 +0200
committerdzwdz2021-09-21 18:37:01 +0200
commitd9ec06192725bb6bf023120e99cbe8da33756628 (patch)
tree847ff37279af11932891e70f7f14f9071182940f /src/kernel/arch/i386/tty/serial.c
parentdc7a432b877222253fe02a332fba69d077eea8fe (diff)
start using sparse's `-Wdecl`
Diffstat (limited to 'src/kernel/arch/i386/tty/serial.c')
-rw-r--r--src/kernel/arch/i386/tty/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/tty/serial.c b/src/kernel/arch/i386/tty/serial.c
index a259750..b3f1d9d 100644
--- a/src/kernel/arch/i386/tty/serial.c
+++ b/src/kernel/arch/i386/tty/serial.c
@@ -2,7 +2,7 @@
#include <kernel/arch/i386/port_io.h>
#include <stdint.h>
-const int COM1 = 0x3f8;
+static const int COM1 = 0x3f8;
void serial_init(void) {
// see https://www.sci.muni.cz/docs/pc/serport.txt
@@ -23,7 +23,7 @@ void serial_init(void) {
* if i start using serial for input, TODO selftest */
}
-void serial_putchar(char c) {
+static void serial_putchar(char c) {
while ((port_inb(COM1 + 5) & 0x20) == 0); // wait for THRE
port_outb(COM1, c);
}