git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1123 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
1421a2fd6c
commit
95b19d5c19
|
@ -306,7 +306,7 @@ struct context {
|
||||||
if (sp - sizeof(struct intctx) - sizeof(Thread) < (char *)_otp) \
|
if (sp - sizeof(struct intctx) - sizeof(Thread) < (char *)_otp) \
|
||||||
asm volatile ("movs r0, #0 \n\t" \
|
asm volatile ("movs r0, #0 \n\t" \
|
||||||
"b chDbgPanic"); \
|
"b chDbgPanic"); \
|
||||||
asm volatile ("svc #0" : : "r" (_otp), "r" (_ntp) : "memory"); \
|
asm volatile ("svc #0" : : "r" (_otp), "r" (_ntp) : "memory"); \
|
||||||
}
|
}
|
||||||
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
#else /* !CH_DBG_ENABLE_STACK_CHECK */
|
||||||
#define port_switch(otp, ntp) { \
|
#define port_switch(otp, ntp) { \
|
||||||
|
|
Loading…
Reference in New Issue