diff options
author | dzwdz | 2022-06-30 17:43:11 +0200 |
---|---|---|
committer | dzwdz | 2022-06-30 17:43:11 +0200 |
commit | a66b497d688465685ed6269af622b5fb8cf017c9 (patch) | |
tree | 86226c56186ba2832166608caca933fee1f47676 /src/kernel | |
parent | 0b152c926f3dc27ed736898b19d4653bc1a016fe (diff) |
kernel: get lint to shut up about undeclared variables
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/arch/i386/boot.c | 3 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/tty.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/tty.h (renamed from src/kernel/arch/i386/tty/vga.h) | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/tty/vga.c | 2 | ||||
-rw-r--r-- | src/kernel/mem/alloc.h | 2 |
5 files changed, 7 insertions, 4 deletions
diff --git a/src/kernel/arch/i386/boot.c b/src/kernel/arch/i386/boot.c index 4969c1c..754a327 100644 --- a/src/kernel/arch/i386/boot.c +++ b/src/kernel/arch/i386/boot.c @@ -8,12 +8,11 @@ #include <kernel/arch/i386/interrupts/idt.h> #include <kernel/arch/i386/interrupts/irq.h> #include <kernel/arch/i386/multiboot.h> +#include <kernel/arch/i386/tty/tty.h> #include <kernel/main.h> #include <kernel/mem/alloc.h> #include <kernel/panic.h> -void tty_init(void); // TODO put this in a header file - static void find_init(struct multiboot_info *multiboot, struct kmain_info *info) { struct multiboot_mod *module = &multiboot->mods[0]; diff --git a/src/kernel/arch/i386/tty/tty.c b/src/kernel/arch/i386/tty/tty.c index aa63507..9451059 100644 --- a/src/kernel/arch/i386/tty/tty.c +++ b/src/kernel/arch/i386/tty/tty.c @@ -1,6 +1,6 @@ #include <kernel/arch/generic.h> #include <kernel/arch/i386/driver/serial.h> -#include <kernel/arch/i386/tty/vga.h> +#include <kernel/arch/i386/tty/tty.h> #include <shared/printf.h> void tty_init(void) { diff --git a/src/kernel/arch/i386/tty/vga.h b/src/kernel/arch/i386/tty/tty.h index 69b1ab7..b96003d 100644 --- a/src/kernel/arch/i386/tty/vga.h +++ b/src/kernel/arch/i386/tty/tty.h @@ -3,3 +3,5 @@ void vga_write(const char *buf, size_t len); void vga_clear(void); + +void tty_init(void); diff --git a/src/kernel/arch/i386/tty/vga.c b/src/kernel/arch/i386/tty/vga.c index 24bbf98..9efd326 100644 --- a/src/kernel/arch/i386/tty/vga.c +++ b/src/kernel/arch/i386/tty/vga.c @@ -1,4 +1,4 @@ -#include <kernel/arch/i386/tty/vga.h> +#include <kernel/arch/i386/tty/tty.h> struct vga_cell { unsigned char c; diff --git a/src/kernel/mem/alloc.h b/src/kernel/mem/alloc.h index 99fd931..a92d866 100644 --- a/src/kernel/mem/alloc.h +++ b/src/kernel/mem/alloc.h @@ -3,6 +3,8 @@ #include <kernel/main.h> #include <stddef.h> +extern struct malloc_hdr *malloc_last; + void mem_init(struct kmain_info *); void mem_debugprint(void); |