Commit 8fef79cb authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Implement DebugBreak() for ARM64EC.

parent 6a5bb5d7
......@@ -120,13 +120,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcessStop( DWORD pid )
*/
#ifdef __i386__
__ASM_STDCALL_FUNC( DebugBreak, 0, "jmp " __ASM_STDCALL("DbgBreakPoint", 0) )
#elif defined(__aarch64__)
__ASM_GLOBAL_FUNC( DebugBreak, "brk #0xf000; ret" )
#elif defined(__arm64ec__)
void __attribute__((naked)) WINAPI DebugBreak(void) { asm( "brk #0xf000; ret" ); }
#elif defined(__x86_64__)
__ASM_GLOBAL_FUNC( DebugBreak, "jmp " __ASM_NAME("DbgBreakPoint") )
#else
void WINAPI DebugBreak(void)
{
DbgBreakPoint();
}
#elif defined(__arm__)
__ASM_GLOBAL_FUNC( DebugBreak, "udf #0xfe; bx lr" )
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment