proc: add basic proc loading

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-17 20:11:19 -04:00
commit 6b40cca5b0
10 changed files with 187 additions and 44 deletions

View file

@ -12,6 +12,7 @@
#include <kernel/requests.h>
#include <kernel/page.h>
#include <kernel/slab.h>
#include <kernel/proc.h>
#include <arch/init.h>
@ -61,6 +62,7 @@ static void kmain()
page_init();
ramfs_init();
struct limine_file *file = module_res->modules[0];
fs_t *initramfs;
@ -70,15 +72,14 @@ static void kmain()
if (res < 0)
panic("failed to load initramfs: %s\n", strerror(-res));
/* start the kernel */
/* "layer 2" kernel requirements */
devfs_init();
device_layer_init();
tty_layer_init();
proc_init();
/* init main fallback tty */
struct tty *serial_tty = NULL;
serial_port_tty_init(&serial_tty);
struct tty *visual_tty = fbcon_init();
struct tty *tee = tty_tee_create("broadcast");
@ -87,7 +88,6 @@ static void kmain()
tty_printf = tee;
do_initcalls();
arch_ap_startup();
/* do nothing, for now :) */