diff options
author | rtm <rtm> | 2006-07-29 09:35:02 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-29 09:35:02 +0000 |
commit | 32630628a996e29018641af262272339ed6fef88 (patch) | |
tree | 73c9a7dee75f96c0ce0e9c804d379dd60bf254b4 /proc.c | |
parent | e46fb46fcf4302bf5ed913101c5c7b510fe03ad4 (diff) | |
download | xv6-labs-32630628a996e29018641af262272339ed6fef88.tar.gz xv6-labs-32630628a996e29018641af262272339ed6fef88.tar.bz2 xv6-labs-32630628a996e29018641af262272339ed6fef88.zip |
open()
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,7 +7,7 @@ #include "defs.h" #include "spinlock.h" -struct spinlock proc_table_lock; +struct spinlock proc_table_lock = { "proc_table" }; struct proc proc[NPROC]; struct proc *curproc[NCPU]; @@ -137,8 +137,10 @@ scheduler(void) cprintf("start scheduler on cpu %d jmpbuf %p\n", cpu(), &cpus[cpu()].jmpbuf); cpus[cpu()].lastproc = &proc[0]; - if(cpus[cpu()].nlock != 0) + if(cpus[cpu()].nlock != 0){ + cprintf("la %x lr %x\n", cpus[cpu()].lastacquire, cpus[cpu()].lastrelease ); panic("holding locks at first entry to scheduler"); + } for(;;){ // Loop over process table looking for process to run. |