From: Matthias Kruk Date: Fri, 31 Jan 2020 11:30:45 +0000 (+0900) Subject: Remove some unused code from main.c X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=83aae47c8caaf9098b43e7f6f9808cb16081dad1;p=corax Remove some unused code from main.c --- 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();