From 95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 12 Jan 2025 01:17:36 -0600 Subject: PROJECT RESTRUCTURING Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman --- kernel/init.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 kernel/init.c (limited to 'kernel/init.c') diff --git a/kernel/init.c b/kernel/init.c deleted file mode 100644 index d4a3638..0000000 --- a/kernel/init.c +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -void jump_userspace(void); - -char rootfs[1024]; -char init_bin[1024]; -int gdbstub = 0; - -void process_cmd(char *cmdline) { - char *token = strtok(cmdline, " "); - while (token != NULL) { - if (strncmp(token, "root=", 5) == 0) - strcpy(rootfs, &token[5]); - if (strncmp(token, "init=", 5) == 0) - strcpy(init_bin, &token[5]); - if (strncmp(token, "gdb", 3) == 0) - gdbstub = 1; - token = strtok(NULL, " "); - } -} - -void kernel_main(char *cmdline) { - kprintf("Box kernel version %s\n", VERSION); - process_cmd(cmdline); - - serial_init(); - sched_init(); - //pci_check_buses(); -} -- cgit v1.2.3