git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6671 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2014-02-08 09:34:43 +00:00
parent adda7d09f6
commit 1d9041f77b
4 changed files with 10 additions and 6 deletions

View File

@ -62,6 +62,10 @@
#define CH_KERNEL_PATCH 0
/** @} */
/* Required forward declaration, knowledge of this type is required by all
modules.*/
typedef struct thread thread_t;
/* Core headers.*/
#include "chtypes.h"
#include "chconf.h"

View File

@ -254,7 +254,7 @@ struct port_intctx {
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) \
chSysHalt("stack overflow"); \
_port_switch((void *)ntp, (void *)otp); \
_port_switch(ntp, otp); \
}
#endif
@ -266,7 +266,7 @@ struct port_intctx {
extern "C" {
#endif
void _port_irq_epilogue(regarm_t lr);
void _port_switch(void *ntp, void *otp);
void _port_switch(thread_t *ntp, thread_t *otp);
void _port_thread_start(void);
void _port_switch_from_isr(void);
void _port_exit_from_isr(void);

View File

@ -344,7 +344,7 @@ struct port_intctx {
struct port_intctx *r13 = (struct port_intctx *)__get_PSP(); \
if ((stkalign_t *)(r13 - 1) < (otp)->p_stklimit) \
chSysHalt("stack overflow"); \
_port_switch((void *)ntp, (void *)otp); \
_port_switch(ntp, otp); \
}
#endif
@ -356,7 +356,7 @@ struct port_intctx {
extern "C" {
#endif
void _port_irq_epilogue(void);
void _port_switch(void *ntp, void *otp);
void _port_switch(thread_t *ntp, thread_t *otp);
void _port_thread_start(void);
void _port_switch_from_isr(void);
void _port_exit_from_isr(void);

View File

@ -340,7 +340,7 @@ struct context {
register struct port_intctx *sp asm ("%r1"); \
if ((stkalign_t *)(sp - 1) < otp->p_stklimit) \
chDbgPanic("stack overflow"); \
_port_switch((void *)ntp, (void *)otp); \
_port_switch(ntp, otp); \
}
#endif
@ -373,7 +373,7 @@ struct context {
#ifdef __cplusplus
extern "C" {
#endif
void _port_switch(void *ntp, void *otp);
void _port_switch(thread_t *ntp, thread_t *otp);
void _port_thread_start(void);
#ifdef __cplusplus
}