Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions sys/kern/src/arch/arm_m.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@ cfg_if::cfg_if! {
SVCall:
@ Inspect LR to figure out the caller's mode.
mov r0, lr
ldr r1, =0xFFFFFFF3
bics r0, r0, r1
movs r1, #0xC
ands r0, r1
@ Is the call coming from thread mode + main stack, i.e.
@ from the kernel startup routine?
cmp r0, #0x8
Expand Down Expand Up @@ -939,8 +939,7 @@ cfg_if::cfg_if! {
SVCall:
@ Inspect LR to figure out the caller's mode.
mov r0, lr
mov r1, #0xFFFFFFF3
bic r0, r1
and r0, r0, #0xC
@ Is the call coming from thread mode + main stack, i.e.
@ from the kernel startup routine?
cmp r0, #0x8
Expand Down