aboutsummaryrefslogtreecommitdiff
path: root/src/sys/schedule.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-20 23:22:42 -0700
committerChristian Cunningham <cc@localhost>2022-01-20 23:22:42 -0700
commit73a80de4228a498b483c8e10ab317920d978d507 (patch)
treeeea73a138a509d7758ef477d4997cf7147233604 /src/sys/schedule.S
parentc2e52566ed53b53227a6fe577a05170766a1ae4c (diff)
Moved globals to file
Diffstat (limited to 'src/sys/schedule.S')
-rw-r--r--src/sys/schedule.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/schedule.S b/src/sys/schedule.S
index aa33942..a46654c 100644
--- a/src/sys/schedule.S
+++ b/src/sys/schedule.S
@@ -91,7 +91,7 @@ schedule.current_thread_nexists:
ldr r1, [r0, #0x8]
// r1 = struct Thread* next_thread
// Store system stack pointer
- ldr r2, =syssp
+ ldr r2, =svcsp
push {r1}
ldr r1, [r2]
cmp r1, #0
@@ -127,9 +127,9 @@ schedule.no_next_thread:
// r1 = 0 = struct LL* current_thread_ll
// No thread to run
// Restore sys context
- ldr r0, =syscpu
+ ldr r0, =svccpu
str r0, [r3, #0x4] // Store context
- ldr r0, =syssp
+ ldr r0, =svcsp
ldr r1, [r0]
cmp r1, #0
beq schedule.exit