git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2622 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
f861470e79
commit
7f73cde984
|
@ -62,7 +62,7 @@ CH_IRQ_HANDLER(SysTickVector) {
|
||||||
#if !defined(__DOXYGEN__)
|
#if !defined(__DOXYGEN__)
|
||||||
__attribute__((naked))
|
__attribute__((naked))
|
||||||
#endif
|
#endif
|
||||||
void _port_switch_from_irq(void) {
|
void _port_switch_from_isr(void) {
|
||||||
/* Note, saves r4 to make space for the PC.*/
|
/* Note, saves r4 to make space for the PC.*/
|
||||||
asm volatile ("push {r0, r1, r2, r3, r4} \n\t"
|
asm volatile ("push {r0, r1, r2, r3, r4} \n\t"
|
||||||
"mrs r0, APSR \n\t"
|
"mrs r0, APSR \n\t"
|
||||||
|
|
|
@ -136,7 +136,7 @@ struct intctx {
|
||||||
\
|
\
|
||||||
asm volatile ("mrs %0, PSP" : "=r" (ctxp) : ); \
|
asm volatile ("mrs %0, PSP" : "=r" (ctxp) : ); \
|
||||||
_port_saved_pc = ctxp->pc; \
|
_port_saved_pc = ctxp->pc; \
|
||||||
ctxp->pc = _port_switch_from_irq; \
|
ctxp->pc = _port_switch_from_isr; \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
port_unlock_from_isr(); \
|
port_unlock_from_isr(); \
|
||||||
|
@ -237,7 +237,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void port_halt(void);
|
void port_halt(void);
|
||||||
void port_switch(Thread *ntp, Thread *otp);
|
void port_switch(Thread *ntp, Thread *otp);
|
||||||
void _port_switch_from_irq(void);
|
void _port_switch_from_isr(void);
|
||||||
void _port_thread_start(void);
|
void _port_thread_start(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue