aboutsummaryrefslogtreecommitdiff
path: root/src/sys/schedule.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-20 16:42:08 -0700
committerChristian Cunningham <cc@localhost>2022-02-20 16:42:08 -0700
commitde1b3b3763c90d3405d496f4ac7358d9b5ffbcc8 (patch)
tree11aff366a2e2b5884793138bc644bafd8a3a3980 /src/sys/schedule.S
parent59b137e5888004266ec988f72ffe91de4d53bd97 (diff)
Remove unnecessary comparison
Diffstat (limited to 'src/sys/schedule.S')
-rw-r--r--src/sys/schedule.S5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sys/schedule.S b/src/sys/schedule.S
index d10b844..e44d12b 100644
--- a/src/sys/schedule.S
+++ b/src/sys/schedule.S
@@ -20,11 +20,7 @@ schedule:
1:
bl next_thread // Thread* next -> r0
ldr r3, =scheduler
- ldr r2, [r3, #0] // Thread* current
- cmp r0, r2 // current = next?
- beq 2f
str r0, [r3, #0] // next -> rthread
-2:
restore_ctx
subs pc, lr, #0
@@ -54,5 +50,4 @@ cleanup:
.globl kernel_usr_task_loop
kernel_usr_task_loop:
wfe
- //svc #2
b kernel_usr_task_loop