main: remove debug function
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
da4023412c
commit
9bbe42b95a
1 changed files with 9 additions and 11 deletions
20
init/main.c
20
init/main.c
|
|
@ -25,6 +25,8 @@
|
|||
#include <fs/vfs.h>
|
||||
#include <fs/inode.h>
|
||||
#include <fs/cpio.h>
|
||||
#include <fs/ramfs.h>
|
||||
#include <fs/devfs.h>
|
||||
|
||||
#include <lib/stdio.h>
|
||||
#include <lib/list.h>
|
||||
|
|
@ -43,13 +45,6 @@ static void do_initcalls()
|
|||
(*fn)();
|
||||
}
|
||||
|
||||
static void indent(int indent)
|
||||
{
|
||||
for (int i = 0; i < indent; i++) {
|
||||
kprintf(" ");
|
||||
}
|
||||
}
|
||||
|
||||
static void kmain()
|
||||
{
|
||||
/* data types */
|
||||
|
|
@ -58,11 +53,9 @@ static void kmain()
|
|||
kalloc_init();
|
||||
vfs_init();
|
||||
arch_init();
|
||||
device_layer_init();
|
||||
/* start the kernel */
|
||||
page_init();
|
||||
do_initcalls();
|
||||
|
||||
page_init();
|
||||
ramfs_init();
|
||||
struct limine_file *file = module_res->modules[0];
|
||||
|
||||
fs_t *initramfs;
|
||||
|
|
@ -72,6 +65,11 @@ static void kmain()
|
|||
if (res < 0)
|
||||
panic("failed to load initramfs: %s\n", strerror(-res));
|
||||
|
||||
/* start the kernel */
|
||||
devfs_init();
|
||||
device_layer_init();
|
||||
do_initcalls();
|
||||
|
||||
/* do nothing, for now :) */
|
||||
yield();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue