From: John Hodge Date: Thu, 9 Sep 2010 02:06:47 +0000 (+0800) Subject: Spinlock fixes X-Git-Tag: rel0.06~21 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c1d591911e743365016c7195eefddf56955b430a;p=tpg%2Facess2.git Spinlock fixes --- diff --git a/Kernel/arch/x86/lib.c b/Kernel/arch/x86/lib.c index f3f190d4..2fa1e516 100644 --- a/Kernel/arch/x86/lib.c +++ b/Kernel/arch/x86/lib.c @@ -85,7 +85,7 @@ void SHORTLOCK(struct sShortSpinlock *Lock) : "=a"(v) : "a"(0), "r"(cpu), "r"(&Lock->Lock) ); - #elseif STACKED_LOCKS == 2 + #elif STACKED_LOCKS == 2 __ASM__("lock cmpxchgl %2, (%3)" : "=a"(v) : "a"(0), "r"(thread), "r"(&Lock->Lock)