diff --git a/kernel/os/include/os/arch/common.h b/kernel/os/include/os/arch/common.h index c5f09f3a7e..64ff55a79f 100644 --- a/kernel/os/include/os/arch/common.h +++ b/kernel/os/include/os/arch/common.h @@ -70,7 +70,7 @@ os_error_t os_arch_os_start(void); void os_set_env(os_stack_t *); void os_arch_init_task_stack(os_stack_t *sf); void os_default_irq_asm(void); -void os_assert_cb(void); +void os_assert_cb(const char *file, int line, const char *func, const char *e); void os_coredump_cb(void *tf); #ifdef __cplusplus diff --git a/kernel/os/src/arch/cortex_m4/os_fault.c b/kernel/os/src/arch/cortex_m4/os_fault.c index 7928d8a786..019c27fbfa 100644 --- a/kernel/os/src/arch/cortex_m4/os_fault.c +++ b/kernel/os/src/arch/cortex_m4/os_fault.c @@ -147,7 +147,7 @@ __assert_func(const char *file, int line, const char *func, const char *e) #endif #if MYNEWT_VAL(OS_ASSERT_CB) - os_assert_cb(); + os_assert_cb(file, line, func, e); #endif SCB->ICSR = SCB_ICSR_NMIPENDSET_Msk;