[ros-diffs] [ros-arm-bringup] 41923: Don't try to write to "EAX" register on anything else but x86. Please write portable code in crossarch sources.

ros-arm-bringup at svn.reactos.org ros-arm-bringup at svn.reactos.org
Sun Jul 12 12:44:54 CEST 2009


Author: ros-arm-bringup
Date: Sun Jul 12 14:44:53 2009
New Revision: 41923

URL: http://svn.reactos.org/svn/reactos?rev=41923&view=rev
Log:
Don't try to write to "EAX" register on anything else but x86. Please write portable code in crossarch sources.

Modified:
    trunk/reactos/ntoskrnl/kd/kdmain.c

Modified: trunk/reactos/ntoskrnl/kd/kdmain.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdmain.c?rev=41923&r1=41922&r2=41923&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] Sun Jul 12 14:44:53 2009
@@ -141,7 +141,13 @@
             KdpServiceDispatcher(BREAKPOINT_PRINT,
                                  (PVOID)ExceptionRecord->ExceptionInformation[1],
                                  ExceptionRecord->ExceptionInformation[2]);
+#ifdef _M_IX86
             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)
         {



More information about the Ros-diffs mailing list