diff options
author | Christian Cunningham <cc@localhost> | 2022-02-20 16:42:08 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-20 16:42:08 -0700 |
commit | de1b3b3763c90d3405d496f4ac7358d9b5ffbcc8 (patch) | |
tree | 11aff366a2e2b5884793138bc644bafd8a3a3980 /src/sys | |
parent | 59b137e5888004266ec988f72ffe91de4d53bd97 (diff) |
Remove unnecessary comparison
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/schedule.S | 5 |
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 |