Spinlock fixes
authorJohn Hodge <[email protected]>
Thu, 9 Sep 2010 02:06:47 +0000 (10:06 +0800)
committerJohn Hodge <[email protected]>
Thu, 9 Sep 2010 02:06:47 +0000 (10:06 +0800)
Kernel/arch/x86/lib.c

index f3f190d..2fa1e51 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au