summaryrefslogtreecommitdiffstats
path: root/sys/arm/arm/swtch.S
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2005-03-06 21:12:03 +0000
committercognet <cognet@FreeBSD.org>2005-03-06 21:12:03 +0000
commit1bc82499df51c969aa775cc7c1fc0790b9b6eba6 (patch)
treee108daeca512cabdecd7d412ce915e9efa3e2c98 /sys/arm/arm/swtch.S
parent5e08d267b58f1da6c9bba7002210bc1e1a40880f (diff)
downloadFreeBSD-src-1bc82499df51c969aa775cc7c1fc0790b9b6eba6.zip
FreeBSD-src-1bc82499df51c969aa775cc7c1fc0790b9b6eba6.tar.gz
Use [ldr|str]t instead of [ldr|str] when accessing ARM_TP_ADDRESS.
Diffstat (limited to 'sys/arm/arm/swtch.S')
-rw-r--r--sys/arm/arm/swtch.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arm/arm/swtch.S b/sys/arm/arm/swtch.S
index 2ea5028..4470065 100644
--- a/sys/arm/arm/swtch.S
+++ b/sys/arm/arm/swtch.S
@@ -204,7 +204,7 @@ ENTRY(cpu_throw)
/* Set the new tp */
ldr r6, [r5, #(TD_MD + MD_TP)]
mov r5, #ARM_TP_ADDRESS
- str r6, [r5]
+ strt r6, [r5]
/* Hook in a new pcb */
ldr r6, .Lcurpcb
@@ -260,13 +260,12 @@ ENTRY(cpu_switch)
*/
/* Store the old tp */
mov r3, #ARM_TP_ADDRESS
- ldr r9, [r3]
+ ldrt r9, [r3]
str r9, [r0, #(TD_MD + MD_TP)]
/* Set the new tp */
ldr r9, [r1, #(TD_MD + MD_TP)]
- mov r3, #ARM_TP_ADDRESS
- str r9, [r3]
+ strt r9, [r3]
/* Get the user structure for the new process in r9 */
ldr r9, [r1, #(TD_PCB)]
OpenPOWER on IntegriCloud