disable_irqsave can be called first
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 13 Apr 2009 23:27:15 +0000 (16:27 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 13 Apr 2009 23:27:15 +0000 (16:27 -0700)
commit38b4b67f687e6299a8958f7c10511d1e3c3a88e8
treed7cac2816ad4897cf477b62af4e2f53174f9b6c6
parent4c44ea23dd49eb090ec93307f71135638c7a79aa
disable_irqsave can be called first

enable and disable can be called with either first, with ints being the
same as they were at the beginning of the pair.  also allows for nesting
on the same state variable.  comes with a test and some macros for
printd and printk.
inc/stdio.h
inc/x86.h
kern/smp.c
kern/testing.c
kern/testing.h