From 83aae47c8caaf9098b43e7f6f9808cb16081dad1 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 31 Jan 2020 20:30:45 +0900 Subject: [PATCH] Remove some unused code from main.c --- kernel/core/main.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/kernel/core/main.c b/kernel/core/main.c index 8bf0c9d..aaf0fef 100644 --- a/kernel/core/main.c +++ b/kernel/core/main.c @@ -111,9 +111,7 @@ static void _init(void) * found in the MINIX3 operating system. It will spawn the daemons necessary for basic system * operation, and restart them in case they should die. */ - - pid_t vgapid; - +#if 0 pid = fork(); if(!pid) { @@ -126,9 +124,7 @@ static void _init(void) } else if(pid < 0) { /* FIXME: Handle error */ } - - vgapid = pid; - +#endif pid = fork(); if(!pid) { @@ -141,13 +137,6 @@ static void _init(void) /* FIXME: Handle error */ } - #if 0 - struct cxmsg msg; - char *hw = "Hello, world\n"; - - memcpy(msg.cm_data, hw, 13); - cxsendrecv(vgapid, &msg); - #endif wait(NULL); return; @@ -246,7 +235,7 @@ int corax(void *mb_info, u32_t magic) * be printed through the VGA process that is spawned * by init. */ - dbg_printf_disable(); +/* dbg_printf_disable(); */ sched_tick(); -- 2.47.3