diff options
-rw-r--r-- | core/cortex-m0/task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index ee7f9fb8e6..2c1bf2a8c4 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -179,12 +179,14 @@ inline int in_interrupt_context(void) return ret; } +#ifdef CONFIG_TASK_PROFILING static inline int get_interrupt_context(void) { int ret; asm("mrs %0, ipsr\n" : "=r"(ret)); /* read exception number */ return ret & 0x1ff; /* exception bits are the 9 LSB */ } +#endif task_id_t task_get_current(void) { |