From b1acaafbb003ba6a5c20bd58d0fb7314c25a1cdc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 9 Apr 2022 19:05:03 +0200 Subject: init: disable the vga shell i was disabling it while working anyways, i'll only turn it back on once there's support for multiple processes waiting for an irq --- src/init/main.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 5b106df..f1e1e22 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -37,19 +37,21 @@ int main(void) { _syscall_exit(1); } - if (!_syscall_fork()) { - __stdout = _syscall_open(argify("/vga_tty")); - if (__stdout < 0) _syscall_exit(1); + /* + * if (!_syscall_fork()) { + * __stdout = _syscall_open(argify("/vga_tty")); + * if (__stdout < 0) _syscall_exit(1); - __stdin = _syscall_open(argify("/keyboard")); - if (__stdin < 0) { - printf("couldn't open /keyboard\n"); - _syscall_exit(1); - } + * __stdin = _syscall_open(argify("/keyboard")); + * if (__stdin < 0) { + * printf("couldn't open /keyboard\n"); + * _syscall_exit(1); + * } - shell_loop(); - _syscall_exit(1); - } + * shell_loop(); + * _syscall_exit(1); + * } + */ // try to find any working output __stdout = _syscall_open(argify("/com1")); -- cgit v1.2.3