diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init/driver/ansiterm.c (renamed from src/init/ansiterm.c) | 1 | ||||
-rw-r--r-- | src/init/driver/driver.h | 3 | ||||
-rw-r--r-- | src/init/main.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/init/ansiterm.c b/src/init/driver/ansiterm.c index 41b313f..5b05af1 100644 --- a/src/init/ansiterm.c +++ b/src/init/driver/ansiterm.c @@ -1,3 +1,4 @@ +#include <init/driver/driver.h> #include <shared/syscalls.h> #include <stdbool.h> diff --git a/src/init/driver/driver.h b/src/init/driver/driver.h new file mode 100644 index 0000000..e854c65 --- /dev/null +++ b/src/init/driver/driver.h @@ -0,0 +1,3 @@ +#pragma once + +void ansiterm_drv(void); diff --git a/src/init/main.c b/src/init/main.c index 1b9c7ed..18ff9c3 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -1,3 +1,4 @@ +#include <init/driver/driver.h> #include <init/fs/misc.h> #include <init/shell.h> #include <init/stdlib.h> @@ -17,8 +18,6 @@ extern char _initrd; void read_file(const char *path, size_t len); void fs_prep(void); -void ansiterm_drv(void); // TODO header file - __attribute__((section(".text.startup"))) int main(void) { // allocate bss |