diff options
author | dzwdz | 2022-04-10 16:17:57 +0200 |
---|---|---|
committer | dzwdz | 2022-04-10 16:17:57 +0200 |
commit | ec7c6eff3c10565a57ba2b2c14b3f224d9216b76 (patch) | |
tree | 2c61068f72f40403b16863776eb0bd9eacaf1198 /src/init | |
parent | 1677ac032bb89f87456ac5668118f0091ae5ed9f (diff) |
kernel/i386: rewrite the serial driver to wait for IRQ
proper multiprocess support!
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/init/main.c b/src/init/main.c index 06e48cf..200d8bd 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -22,14 +22,13 @@ int main(void) { // allocate bss _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT); - MOUNT("/init", tar_driver(&_initrd)); MOUNT("/keyboard", ps2_drv()); MOUNT("/vga_tty", ansiterm_drv()); MOUNT("/bind", fs_passthru(NULL)); - if (false && !_syscall_fork()) { + if (!_syscall_fork()) { __stdin = __stdout = _syscall_open(argify("/com1")); if (__stdout < 0) _syscall_exit(1); |