From a251c14f1a745f3388ce73a5a45ebc73cd1782b5 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Jul 2022 22:50:34 +0200 Subject: amd64: back at the shell! --- src/user/app/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/user/app/main.c') diff --git a/src/user/app/main.c b/src/user/app/main.c index 527d29f..eff953a 100644 --- a/src/user/app/main.c +++ b/src/user/app/main.c @@ -16,15 +16,12 @@ void read_file(const char *path, size_t len); __attribute__((section(".text.startup"))) int main(void) { - _syscall(1, 2, 3, 4, 5); // allocate bss _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT); file_reopen(stdout, "/com1", 0); printf("preinit\n"); - _syscall_exit(0); // temporary - /* move everything provided by the kernel to /kdev */ MOUNT("/kdev/", fs_passthru(NULL)); if (!fork2_n_mount("/")) { @@ -66,7 +63,7 @@ int main(void) { printf("couldn't open /kdev/com1\n"); _syscall_exit(1); } - termcook(); + //termcook(); shell_loop(); _syscall_exit(1); @@ -82,7 +79,7 @@ int main(void) { printf("couldn't open /keyboard\n"); _syscall_exit(1); } - termcook(); + //termcook(); shell_loop(); _syscall_exit(1); -- cgit v1.2.3