git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14874 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
3999f4b162
commit
10e2924d17
|
@ -219,7 +219,10 @@ frompriv:
|
||||||
ands r3, #255
|
ands r3, #255
|
||||||
beq ctxswitch
|
beq ctxswitch
|
||||||
/* Called for non-privileged mode change.*/
|
/* Called for non-privileged mode change.*/
|
||||||
|
msr PSP, r0 /* Discarding SVC context. */
|
||||||
|
orr r2, #1
|
||||||
|
msr CONTROL, r2 /* Switching to non-privileged. */
|
||||||
|
bx lr
|
||||||
|
|
||||||
ctxswitch:
|
ctxswitch:
|
||||||
/* Called for context switch.*/
|
/* Called for context switch.*/
|
||||||
|
|
Loading…
Reference in New Issue