diff options
author | dzwdz | 2022-05-05 21:01:25 +0200 |
---|---|---|
committer | dzwdz | 2022-05-05 21:01:25 +0200 |
commit | dc42353f53df0b5425377330f16e668829d8fd9a (patch) | |
tree | 7d2af922417df9e0a708007e17bcce1ef2833b99 /src/init/main.c | |
parent | 3beaeaadf36de4e494d0b40ad31e3c5c503c596e (diff) |
kernel: ps2 driver is now a separate backend
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: |