Fixed more regressions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13972 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
93e3cdbba2
commit
f56587102a
|
@ -243,6 +243,16 @@ struct port_context {
|
|||
#define PORT_WORKING_AREA(s, n) \
|
||||
stkalign_t s[THD_WORKING_AREA_SIZE(n) / sizeof (stkalign_t)]
|
||||
|
||||
/**
|
||||
* @brief Priority level verification macro.
|
||||
*/
|
||||
#define PORT_IRQ_IS_VALID_PRIORITY(n) false
|
||||
|
||||
/**
|
||||
* @brief Priority level verification macro.
|
||||
*/
|
||||
#define PORT_IRQ_IS_VALID_KERNEL_PRIORITY(n) false
|
||||
|
||||
/**
|
||||
* @brief IRQ prologue code.
|
||||
* @details This macro must be inserted at the start of all IRQ handlers
|
||||
|
@ -321,7 +331,9 @@ extern "C" {
|
|||
/**
|
||||
* @brief Port-related initialization code.
|
||||
*/
|
||||
static inline void port_init(void) {
|
||||
static inline void port_init(os_instance_t *oip) {
|
||||
|
||||
(void)oip;
|
||||
|
||||
port_irq_sts = (syssts_t)0;
|
||||
port_isr_context_flag = false;
|
||||
|
|
|
@ -93,10 +93,10 @@ void _sim_check_for_interrupts(void) {
|
|||
}
|
||||
|
||||
if (int_occurred) {
|
||||
_dbg_check_lock();
|
||||
__dbg_check_lock();
|
||||
if (chSchIsPreemptionRequired())
|
||||
chSchDoReschedule();
|
||||
_dbg_check_unlock();
|
||||
chSchDoPreemption();
|
||||
__dbg_check_unlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,16 +86,19 @@ void chSysInit(void) {
|
|||
|
||||
/* Initializing default OS instance.*/
|
||||
{
|
||||
#if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)
|
||||
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
|
||||
extern stkalign_t __main_thread_stack_base__,
|
||||
__main_thread_stack_end__;
|
||||
#endif
|
||||
|
||||
static const os_instance_config_t default_cfg = {
|
||||
.name = "c0",
|
||||
#if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)
|
||||
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
|
||||
.mainthread_base = &__main_thread_stack_base__,
|
||||
.mainthread_end = &__main_thread_stack_end__,
|
||||
#elif CH_CFG_USE_DYNAMIC == TRUE
|
||||
.mainthread_base = NULL,
|
||||
.mainthread_end = NULL,
|
||||
#endif
|
||||
#if CH_CFG_NO_IDLE_THREAD == FALSE
|
||||
.idlethread_base = THD_WORKING_AREA_BASE(ch_idle_thread_wa),
|
||||
|
|
Loading…
Reference in New Issue