X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86_64%2Flib.c;h=f20753bcd62778b8fe01b39b59d47218a849444f;hb=8a998da38a4eecface76749701079c833d64a7d8;hp=f7f38c8ba08a4f98e5379e78a27aa46fe9e682e6;hpb=3681dbf27244ee07ae618a9d33a608ae6089d3c5;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86_64/lib.c b/Kernel/arch/x86_64/lib.c index f7f38c8b..f20753bc 100644 --- a/Kernel/arch/x86_64/lib.c +++ b/Kernel/arch/x86_64/lib.c @@ -58,7 +58,7 @@ void SHORTLOCK(struct sShortSpinlock *Lock) #if LOCK_DISABLE_INTS // Save interrupt state and clear interrupts - __ASM__ ("pushf;\n\tpop %0\n\tcli" : "=a"(IF)); + __ASM__ ("pushf;\n\tpop %%rax\n\tcli" : "=a"(IF)); IF &= 0x200; // AND out all but the interrupt flag #endif