mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
Don't try to write to "EAX" register on anything else but x86. Please write portable code in crossarch sources.
svn path=/trunk/; revision=41923
This commit is contained in:
parent
3cba568950
commit
01614d1ae5
1 changed files with 6 additions and 0 deletions
|
@ -141,7 +141,13 @@ KdpEnterDebuggerException(IN PKTRAP_FRAME TrapFrame,
|
||||||
KdpServiceDispatcher(BREAKPOINT_PRINT,
|
KdpServiceDispatcher(BREAKPOINT_PRINT,
|
||||||
(PVOID)ExceptionRecord->ExceptionInformation[1],
|
(PVOID)ExceptionRecord->ExceptionInformation[1],
|
||||||
ExceptionRecord->ExceptionInformation[2]);
|
ExceptionRecord->ExceptionInformation[2]);
|
||||||
|
#ifdef _M_IX86
|
||||||
Context->Eax = STATUS_SUCCESS;
|
Context->Eax = STATUS_SUCCESS;
|
||||||
|
#elif _M_ARM
|
||||||
|
Context->R0 = STATUS_SUCCESS;
|
||||||
|
#else
|
||||||
|
#error Please be portable when modifying code
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if (ExceptionCommand == BREAKPOINT_LOAD_SYMBOLS)
|
else if (ExceptionCommand == BREAKPOINT_LOAD_SYMBOLS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue