[ros-diffs] [sir_richard] 49786: [NTOS]: Seems like cpsr_c doesn't work in this case? Need to investigate. Put an infinite loop in the entrypoint on ARM.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Wed Nov 24 18:56:36 UTC 2010


Author: sir_richard
Date: Wed Nov 24 18:56:35 2010
New Revision: 49786

URL: http://svn.reactos.org/svn/reactos?rev=49786&view=rev
Log:
[NTOS]: Seems like cpsr_c doesn't work in this case? Need to investigate. Put an infinite loop in the entrypoint on ARM.

Modified:
    trunk/reactos/ntoskrnl/ke/arm/boot.s

Modified: trunk/reactos/ntoskrnl/ke/arm/boot.s
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/arm/boot.s?rev=49786&r1=49785&r2=49786&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/arm/boot.s [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/arm/boot.s [iso-8859-1] Wed Nov 24 18:56:35 2010
@@ -15,7 +15,10 @@
     PROLOG_END KiSystemStartup
     
     /* Put us in FIQ mode, set IRQ stack */
-    msr cpsr_c, #CPSR_FIQ_MODE
+    b .
+    mrs r3, cpsr
+    orr r3, r1, #CPSR_FIQ_MODE
+    msr cpsr, r3
     ldr sp, [a1, #LpbInterruptStack]
     
     /* Repeat for IRQ mode */




More information about the Ros-diffs mailing list