Replaced further thread locks. Still not running.
authorJens Krieg <jkrieg@mailbox.tu-berlin.de>
Mon, 27 Jan 2014 08:40:53 +0000 (09:40 +0100)
committerJens Krieg <jkrieg@mailbox.tu-berlin.de>
Mon, 27 Jan 2014 08:40:53 +0000 (09:40 +0100)
sys/amd64/conf/kernel_x86_64-conf
sys/kern/init_main.c
sys/kern/kern_fork.c

index 1f5e5e8..5a7b1ee 100644 (file)
@@ -22,7 +22,8 @@ cpu           HAMMER
 ident          KBS-Kernel
 
 makeoptions    DEBUG=-g                # Build kernel with gdb(1) debug symbols
-
+options                VERBOSE_SYSINIT
+#options               DDB
 options        SCHED_ULE               # ULE scheduler
 options        FW_MOD_SCHED            # Modulized scheduler framework
 options        PREEMPTION              # Enable kernel thread preemption
index e3996b6..62f825b 100644 (file)
@@ -272,7 +272,8 @@ restart:
                                    (*sipp)->udata);
                }
 #endif
-
+               if (last == 0xa800000)
+                       printf("0xa800000 done\n");
                /* Call function */
                (*((*sipp)->func))((*sipp)->udata);
 
index 43ae27c..fc5505f 100644 (file)
@@ -995,11 +995,12 @@ fork_exit(void (*callout)(void *, struct trapframe *), void *arg,
        }
 #warning "fork_exit unlock removed"
 //     thread_unlock(td);
-       register_t rflags;
-       rflags = intr_disable();
-       intr_restore(rflags);
+//     register_t rflags;
+//     rflags = intr_disable();
+//     intr_restore(rflags);
        enable_intr();
 
+       printf("fork_exit thread %s\n", td->td_name);
 
        /*
         * cpu_set_fork_handler intercepts this function call to