X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Flib.c;h=2fa1e5161aeb2492c7f4484cd0f76fd852850c0a;hb=3662ceff5d51ba5a3c31796da73f8f5568f68209;hp=0ca98f9efc9c0e580751344884e87dfd834748aa;hpb=b8a91f439c2721992885557cebae762495fe4348;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/lib.c b/Kernel/arch/x86/lib.c index 0ca98f9e..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) @@ -328,3 +328,7 @@ EXPORT(__udivdi3); EXPORT(__umoddi3); EXPORT(LittleEndian16); EXPORT(BigEndian16); EXPORT(LittleEndian32); EXPORT(BigEndian32); + +EXPORT(SHORTLOCK); +EXPORT(SHORTREL); +EXPORT(IS_LOCKED);