diff options
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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: |