3#include <conf/kernel.h>
4#include <cmrx/arch/riscv/hal.h>
13typedef void (*callback_t)();
17#ifndef CMRX_ARCH_SMP_SUPPORTED
20# define OS_NUM_CORES 1
22# define os_smp_unlock()
30 cmrx_riscv_irq_disable();
35 cmrx_riscv_irq_enable();
41extern unsigned coreid(
void);
44extern void os_smp_lock(
void);
45extern void os_smp_unlock(
void);
48#error "Macro OS_NUM_CORES is not defined. Use -DOS_NUM_CORES=x to tell the CMRX kernel how many cores it manages!"
void os_core_lock()
Lock the current core This function ensures that no other code will interrupt the currently running c...
void os_core_unlock()
Unlock the current core Unlocks exclusive access to the current core.
void os_core_sleep(void)
Park current core This function is free to park current core in whatever way that will still allow th...
Definition corelocal.h:17