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)
commite80b8a193eb5fcafc08dfab7a9c2ef274a274eca
tree7a6c535eb8df08e763740a3d9d3f5e0b821fd669
parent42e7e6f07b1a0fbd3d887419d37cf5d344bcc6f7
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