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/vfs.h>
|
||||||
#include <fs/inode.h>
|
#include <fs/inode.h>
|
||||||
#include <fs/cpio.h>
|
#include <fs/cpio.h>
|
||||||
|
#include <fs/ramfs.h>
|
||||||
|
#include <fs/devfs.h>
|
||||||
|
|
||||||
#include <lib/stdio.h>
|
#include <lib/stdio.h>
|
||||||
#include <lib/list.h>
|
#include <lib/list.h>
|
||||||
|
|
@ -43,13 +45,6 @@ static void do_initcalls()
|
||||||
(*fn)();
|
(*fn)();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void indent(int indent)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < indent; i++) {
|
|
||||||
kprintf(" ");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void kmain()
|
static void kmain()
|
||||||
{
|
{
|
||||||
/* data types */
|
/* data types */
|
||||||
|
|
@ -58,11 +53,9 @@ static void kmain()
|
||||||
kalloc_init();
|
kalloc_init();
|
||||||
vfs_init();
|
vfs_init();
|
||||||
arch_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];
|
struct limine_file *file = module_res->modules[0];
|
||||||
|
|
||||||
fs_t *initramfs;
|
fs_t *initramfs;
|
||||||
|
|
@ -72,6 +65,11 @@ static void kmain()
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
panic("failed to load initramfs: %s\n", strerror(-res));
|
panic("failed to load initramfs: %s\n", strerror(-res));
|
||||||
|
|
||||||
|
/* start the kernel */
|
||||||
|
devfs_init();
|
||||||
|
device_layer_init();
|
||||||
|
do_initcalls();
|
||||||
|
|
||||||
/* do nothing, for now :) */
|
/* do nothing, for now :) */
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue