Spinlock debugging infrastructure
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 24 Oct 2009 22:49:37 +0000 (15:49 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sat, 24 Oct 2009 22:49:37 +0000 (15:49 -0700)
commit88725d170975b1c8cd4140a01ba0c7e79891e151
tree511383e78a2b37a109241cb930730b9136bd6224
parent316d207969e336a2b04618ec1dda49b976640b09
Spinlock debugging infrastructure

Changes all locks to be of type spinlock_t, which if SPINLOCK_DEBUG is
defined, will enable some basic debugging for x86.  It's currently
turned on.  Sparc will need to write a couple functions, like
spinlock_debug (even if they don't do anything).
17 files changed:
kern/arch/i386/atomic.h
kern/arch/i386/console.c
kern/arch/i386/cpuinfo.c
kern/arch/i386/smp_boot.c
kern/arch/i386/x86.h
kern/arch/sparc/atomic.h
kern/include/atomic.h
kern/src/atomic.c
kern/src/env.c
kern/src/kmalloc.c
kern/src/printf.c
kern/src/process.c
kern/src/slab.c
kern/src/syscall.c
kern/src/testing.c
user/roslib/inc/atomic.h
user/roslib/src/atomic.c