]> git.corax.cc Git - corax/commitdiff
Remove some unused code from main.c
authorMatthias Kruk <m@m10k.eu>
Fri, 31 Jan 2020 11:30:45 +0000 (20:30 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 31 Jan 2020 11:30:45 +0000 (20:30 +0900)
kernel/core/main.c

index 8bf0c9db55ad00964ec20a2d92eece8c3cf17642..aaf0fef92a13bd8a09c69f51cb212fd74567df82 100644 (file)
@@ -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();