]> Zhao Yanbai Git Server - minix.git/commit
Added function read_cpu_flags() that returns current cpu flags as a
authorBen Gras <ben@minix3.org>
Mon, 20 Jun 2005 14:53:13 +0000 (14:53 +0000)
committerBen Gras <ben@minix3.org>
Mon, 20 Jun 2005 14:53:13 +0000 (14:53 +0000)
commit3eeff022fb90cae1725a033dcd82e48694cd9762
treea140647019099888ecc3474e16043c7c0393039e
parentc60302c1e723236489b58a8c7b53037160ebe599
Added function read_cpu_flags() that returns current cpu flags as a
long.  This is used to check for interrupts being disabled at the time
of a lock() call, if enabled in config.h. The number of times this
happens is then counted in the kinfo structure. These events (recursive
lockings) lead to nasty race conditions.
kernel/const.h
kernel/klib386.s
kernel/main.c
kernel/proto.h