diff options
Diffstat (limited to 'src/kernel/arch/i386/tty')
-rw-r--r-- | src/kernel/arch/i386/tty/serial.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/serial.h | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/tty.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/vga.c | 4 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/vga.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/arch/i386/tty/serial.c b/src/kernel/arch/i386/tty/serial.c index 6bfe212..a259750 100644 --- a/src/kernel/arch/i386/tty/serial.c +++ b/src/kernel/arch/i386/tty/serial.c @@ -4,7 +4,7 @@ const int COM1 = 0x3f8; -void serial_init() { +void serial_init(void) { // see https://www.sci.muni.cz/docs/pc/serport.txt port_outb(COM1 + 1, 0x00); // disable interrupts, we won't be using them diff --git a/src/kernel/arch/i386/tty/serial.h b/src/kernel/arch/i386/tty/serial.h index ac7131b..2332113 100644 --- a/src/kernel/arch/i386/tty/serial.h +++ b/src/kernel/arch/i386/tty/serial.h @@ -2,4 +2,4 @@ #include <stddef.h> void serial_write(const char *buf, size_t len); -void serial_init(); +void serial_init(void); diff --git a/src/kernel/arch/i386/tty/tty.c b/src/kernel/arch/i386/tty/tty.c index 89a8602..b469285 100644 --- a/src/kernel/arch/i386/tty/tty.c +++ b/src/kernel/arch/i386/tty/tty.c @@ -2,7 +2,7 @@ #include <kernel/arch/i386/tty/vga.h> #include <kernel/arch/log.h> -void tty_init() { +void tty_init(void) { vga_clear(); serial_init(); diff --git a/src/kernel/arch/i386/tty/vga.c b/src/kernel/arch/i386/tty/vga.c index 3cd1034..24bbf98 100644 --- a/src/kernel/arch/i386/tty/vga.c +++ b/src/kernel/arch/i386/tty/vga.c @@ -9,7 +9,7 @@ static const size_t vga_len = 80 * 25; static struct vga_cell *vga = (void*) 0xB8000; static size_t vga_pos = 0; -static void vga_scroll() { +static void vga_scroll(void) { for (size_t i = 0; i < vga_len - 80; i++) vga[i] = vga[i + 80]; vga_pos -= 80; @@ -26,7 +26,7 @@ void vga_write(const char *buf, size_t len) { vga_putchar(buf[i]); } -void vga_clear() { +void vga_clear(void) { for (size_t i = 0; i < vga_len; i++) vga[i].c = ' '; vga_pos = 0; diff --git a/src/kernel/arch/i386/tty/vga.h b/src/kernel/arch/i386/tty/vga.h index c8747c7..69b1ab7 100644 --- a/src/kernel/arch/i386/tty/vga.h +++ b/src/kernel/arch/i386/tty/vga.h @@ -2,4 +2,4 @@ #include <stddef.h> void vga_write(const char *buf, size_t len); -void vga_clear(); +void vga_clear(void); |