Add volatile to asm statement in intr_get_level(),
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Oct 2004 23:56:14 +0000 (23:56 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Oct 2004 23:56:14 +0000 (23:56 +0000)
commit07af4666a5d90db8500abacfe73d6fc2aeb6a7b7
tree234715f2e1f74b0413383a7dd2353114efdd9c32
parent1b504c481511634620ba35628f2ef991a9f9f3c0
Add volatile to asm statement in intr_get_level(),
otherwise GCC will assume that two calls to this function can be
optimized into one, even across asm("sti") or asm("cli").
src/threads/interrupt.c