From dc42353f53df0b5425377330f16e668829d8fd9a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 5 May 2022 21:01:25 +0200 Subject: kernel: ps2 driver is now a separate backend --- src/init/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 5db1333..a5323a3 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -22,12 +22,17 @@ int main(void) { // allocate bss _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT); + file_open(&__stdout, "/com1"); + printf("preinit\n"); + MOUNT("/init/", tar_driver(&_initrd)); MOUNT("/keyboard", ps2_drv()); MOUNT("/vga_tty", ansiterm_drv()); MOUNT("/bind/", fs_passthru(NULL)); + file_close(&__stdout); + if (_syscall_fork(0)) { /* (used to) expose a bug in the kernel * the program will flow like this: -- cgit v1.2.3