git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel - Debugging hard locks
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
x86
/
lib.c
diff --git
a/KernelLand/Kernel/arch/x86/lib.c
b/KernelLand/Kernel/arch/x86/lib.c
index
6b3d722
..
1b1a0c3
100644
(file)
--- a/
KernelLand/Kernel/arch/x86/lib.c
+++ b/
KernelLand/Kernel/arch/x86/lib.c
@@
-85,6
+85,8
@@
void SHORTLOCK(struct sShortSpinlock *Lock)
__ASM__ ("pushf;\n\tpop %0" : "=r"(IF));
IF &= 0x200; // AND out all but the interrupt flag
+ ASSERT( !CPU_HAS_LOCK(Lock) );
+
#if TRACE_LOCKS
if( TRACE_LOCK_COND )
{
UCC
git Repository :: git.ucc.asn.au