summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-04-25 06:49:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-04-25 06:49:47 +0000
commitcc35b44410e389f74474e99ce004aa01bfad6559 (patch)
treed748e1047f54eeb7906c01c285120bfa1850cc46 /sys
parent66a338fb429372b72da0bb5c2835a65eb6f185fb (diff)
fix whitespace
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/arm/cpuswitch.S20
-rw-r--r--sys/arch/arm/arm/cpuswitch7.S20
2 files changed, 20 insertions, 20 deletions
diff --git a/sys/arch/arm/arm/cpuswitch.S b/sys/arch/arm/arm/cpuswitch.S
index b76aa35d69e..c6af9a01b19 100644
--- a/sys/arch/arm/arm/cpuswitch.S
+++ b/sys/arch/arm/arm/cpuswitch.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpuswitch.S,v 1.17 2016/04/25 04:46:56 jsg Exp $ */
+/* $OpenBSD: cpuswitch.S,v 1.18 2016/04/25 06:49:46 jsg Exp $ */
/* $NetBSD: cpuswitch.S,v 1.41 2003/11/15 08:44:18 scw Exp $ */
/*
@@ -236,10 +236,10 @@ ENTRY(cpu_switchto)
* This can be optimised... We know we want to go from SVC32
* mode to UND32 mode
*/
- mrs r3, cpsr
+ mrs r3, cpsr
bic r2, r3, #(PSR_MODE)
orr r2, r2, #(PSR_UND32_MODE | PSR_I)
- msr cpsr_c, r2
+ msr cpsr_c, r2
#ifdef notworthit
teq r0, #0x00000000
@@ -248,7 +248,7 @@ ENTRY(cpu_switchto)
str sp, [r8, #(PCB_UND_SP)]
#endif
- msr cpsr_c, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
/* rem: r0 = old proc */
/* rem: r1 = r6 = new process */
@@ -414,14 +414,14 @@ ENTRY(cpu_switchto)
* This can be optimised... We know we want to go from SVC32
* mode to UND32 mode
*/
- mrs r3, cpsr
+ mrs r3, cpsr
bic r2, r3, #(PSR_MODE)
orr r2, r2, #(PSR_UND32_MODE)
- msr cpsr_c, r2
+ msr cpsr_c, r2
ldr sp, [r9, #(PCB_UND_SP)]
- msr cpsr_c, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
/* Restore all the save registers */
#ifndef __XSCALE__
@@ -493,9 +493,9 @@ ENTRY(proc_trampoline)
mov pc, r4
/* Kill irq's */
- mrs r0, cpsr
- orr r0, r0, #(PSR_I)
- msr cpsr_c, r0
+ mrs r0, cpsr
+ orr r0, r0, #(PSR_I)
+ msr cpsr_c, r0
PULLFRAME
diff --git a/sys/arch/arm/arm/cpuswitch7.S b/sys/arch/arm/arm/cpuswitch7.S
index e59fe027223..ac22e8ee53d 100644
--- a/sys/arch/arm/arm/cpuswitch7.S
+++ b/sys/arch/arm/arm/cpuswitch7.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpuswitch7.S,v 1.8 2016/04/25 04:46:56 jsg Exp $ */
+/* $OpenBSD: cpuswitch7.S,v 1.9 2016/04/25 06:49:46 jsg Exp $ */
/* $NetBSD: cpuswitch.S,v 1.41 2003/11/15 08:44:18 scw Exp $ */
/*
@@ -215,10 +215,10 @@ ENTRY(cpu_switchto)
* This can be optimised... We know we want to go from SVC32
* mode to UND32 mode
*/
- mrs r3, cpsr
+ mrs r3, cpsr
bic r2, r3, #(PSR_MODE)
orr r2, r2, #(PSR_UND32_MODE | PSR_I)
- msr cpsr_c, r2
+ msr cpsr_c, r2
#ifdef notworthit
teq r0, #0x00000000
@@ -227,7 +227,7 @@ ENTRY(cpu_switchto)
str sp, [r8, #(PCB_UND_SP)]
#endif
- msr cpsr_c, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
/* rem: r0 = old proc */
/* rem: r1 = r6 = new process */
@@ -344,14 +344,14 @@ ENTRY(cpu_switchto)
* This can be optimised... We know we want to go from SVC32
* mode to UND32 mode
*/
- mrs r3, cpsr
+ mrs r3, cpsr
bic r2, r3, #(PSR_MODE)
orr r2, r2, #(PSR_UND32_MODE)
- msr cpsr_c, r2
+ msr cpsr_c, r2
ldr sp, [r9, #(PCB_UND_SP)]
- msr cpsr_c, r3 /* Restore the old mode */
+ msr cpsr_c, r3 /* Restore the old mode */
/* Restore all the save registers */
add r7, r9, #PCB_R8
@@ -407,9 +407,9 @@ ENTRY(proc_trampoline)
mov pc, r4
/* Kill irq's */
- mrs r0, cpsr
- orr r0, r0, #(PSR_I)
- msr cpsr_c, r0
+ mrs r0, cpsr
+ orr r0, r0, #(PSR_I)
+ msr cpsr_c, r0
PULLFRAME