kernel: activate arch interface headers
Duplicate definitions elsewhere have been removed. A couple functions which are defined by the arch interface to be non-inline, but were implemented inline by native_posix and intel64, have been moved to non-inline. Some missing conditional compilation for z_arch_irq_offload() has been fixed, as this is an optional feature. Some massaging of native_posix headers to get everything in the right scope. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e69997eb77
commit
979b17f243
16 changed files with 54 additions and 165 deletions
|
@ -15,10 +15,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*irq_offload_routine_t)(void *parameter);
|
||||
|
||||
void z_arch_irq_offload(irq_offload_routine_t routine, void *parameter);
|
||||
#include <arch/cpu.h>
|
||||
|
||||
#ifdef CONFIG_IRQ_OFFLOAD
|
||||
/**
|
||||
* @brief Run a function in interrupt context
|
||||
*
|
||||
|
@ -35,6 +34,7 @@ static inline void irq_offload(irq_offload_routine_t routine, void *parameter)
|
|||
{
|
||||
z_arch_irq_offload(routine, parameter);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue