[haiku-commits] haiku: hrev49777 - src/system/kernel/arch/arm

  • From: js-haiku-commits@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 8 Nov 2015 00:59:58 +0100 (CET)

hrev49777 adds 1 changeset to branch 'master'
old head: 15d594cccddf715daae268eeff2a65590fb2f6b2
new head: 93bcaf3650a2d561623d233efc56b339dbb20397
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=93bcaf3650a2+%5E15d594cccddf

----------------------------------------------------------------------------

93bcaf3650a2: arm/arch_exceptions.S: Replace spsr_all with spsr

After a quick look at binutils, they seem to be equal, however, Clang
does not accept the _all one.

[ Jonathan Schleifer <js@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49777
Commit: 93bcaf3650a2d561623d233efc56b339dbb20397
URL: http://cgit.haiku-os.org/haiku/commit/?id=93bcaf3650a2
Author: Jonathan Schleifer <js@xxxxxxxxxxx>
Date: Sat Nov 7 23:59:18 2015 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 3 deletions(-)
src/system/kernel/arch/arm/arch_exceptions.S | 6 +++---

----------------------------------------------------------------------------

diff --git a/src/system/kernel/arch/arm/arch_exceptions.S
b/src/system/kernel/arch/arm/arch_exceptions.S
index a67ff88..42ff0bb 100644
--- a/src/system/kernel/arch/arm/arch_exceptions.S
+++ b/src/system/kernel/arch/arm/arch_exceptions.S
@@ -32,20 +32,20 @@
str r0, [sp, #-4]! /* Push return
address */
str lr, [sp, #-4]! /* Push SVC lr
*/
str r2, [sp, #-4]! /* Push SVC sp
*/
- msr spsr_all, r3 /* Restore
correct spsr */
+ msr spsr, r3 /*
Restore correct spsr */
ldmdb r1, {r0-r3} /* Restore 4
regs from xxx mode */
sub sp, sp, #(4*15) /* Adjust the
stack pointer */
stmia sp, {r0-r12} /* Push the user mode
registers */
add r0, sp, #(4*13) /* Adjust the
stack pointer */
stmia r0, {r13-r14}^ /* Push the user mode
registers */
mov r0, r0 /* NOP
for previous instruction */
- mrs r0, spsr_all
+ mrs r0, spsr
str r0, [sp, #-4]! /* Save spsr */
.endm

.macro PULLFRAMEFROMSVCANDEXIT
ldr r0, [sp], #0x0004 /* Get the SPSR
from stack */
- msr spsr_all, r0 /* restore SPSR
*/
+ msr spsr, r0 /*
restore SPSR */
ldmia sp, {r0-r14}^ /* Restore registers
(usr mode) */
mov r0, r0 /* NOP
for previous instruction */
add sp, sp, #(4*15) /* Adjust the
stack pointer */


Other related posts:

  • » [haiku-commits] haiku: hrev49777 - src/system/kernel/arch/arm - js-haiku-commits