We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e19e7 commit 915e65cCopy full SHA for 915e65c
sys/kern/src/arch/arm_m.rs
@@ -862,8 +862,8 @@ cfg_if::cfg_if! {
862
SVCall:
863
@ Inspect LR to figure out the caller's mode.
864
mov r0, lr
865
- ldr r1, =0xFFFFFFF3
866
- bics r0, r0, r1
+ movs r1, #0xC
+ ands r0, r1
867
@ Is the call coming from thread mode + main stack, i.e.
868
@ from the kernel startup routine?
869
cmp r0, #0x8
@@ -939,8 +939,7 @@ cfg_if::cfg_if! {
939
940
941
942
- mov r1, #0xFFFFFFF3
943
- bic r0, r1
+ and r0, r0, #0xC
944
945
946
0 commit comments