This is Intel syntax!

This commit is contained in:
Ben "root" Anderson
2013-10-26 15:04:59 -05:00
parent 7888b7a336
commit 6157d7eb3e
+5 -2
View File
@@ -543,11 +543,14 @@ static void NORETURN debug_crash()
// __asm mov dword ptr [ebx],eax
// __asm lock add dword ptr cs:[00000000h], 12345678h
#elif defined(__GNUC__)
asm("xor ebx,ebx"
// HACK: I don't know a lick of ASM and don't know how to port this to
// the AT&T syntax gas uses. So we temporarily change it.
asm(".intel_syntax noprefix"
"xor ebx,ebx"
"mov eax,dword ptr [ebx]"
// "mov dword ptr [ebx],eax"
// "lock add dword ptr cs:[00000000h], 12345678h"
);
".att_syntax noprefix");
#endif
// } __except( CrashHandler::ExceptionHandler((EXCEPTION_POINTERS*)_exception_info()) ) {
// }