Skip to content
Merged
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
2 changes: 1 addition & 1 deletion lib/pbio/platform/ev3/exceptionhandler.S
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CommonPanicHandler:
@ NOTE: Assumes we never use User mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment still true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you have to do special handling for User mode, since you can't switch into it and switch back out.

and r0, #MASK_SR_MODE
mrs r1, cpsr
and r2, r1, #MASK_SR_MODE
bic r2, r1, #MASK_SR_MODE
orr r2, r0
msr cpsr, r2
mov r3, r13
Expand Down