babblesim: Fix os_arch_in_isr

This commit is contained in:
Andrzej Kaczmarek
2023-02-24 23:45:16 +01:00
parent 9bed38f91a
commit 0a08f6f449
2 changed files with 8 additions and 5 deletions
+6
View File
@@ -22,6 +22,12 @@ extern void (* const systemVectors[256])(void);
* handler and therefore its priority handling
*/
int
os_arch_in_isr(void)
{
return currently_running_irq >= 0;
}
void posix_interrupt_raised(void)
{
uint64_t irq_lock;
@@ -48,11 +48,8 @@ void os_arch_frame_init(struct stack_frame *sf);
#define OS_IDLE_STACK_SIZE (4000)
#endif
static inline int
os_arch_in_isr(void)
{
return hw_irq_ctrl_get_irq_status();
}
/* Implemented in irq_handler */
int os_arch_in_isr(void);
/* Include common arch definitions and APIs */
#include "os/arch/common.h"