kernel: including legacy.h depends on CONFIG_LEGACY_KERNEL
Jira: ZEP-1585 Change-Id: I283321e862a35945f2c834f8e278338d119bbc94 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
2a2b7de8b2
commit
a614950607
1 changed files with 4 additions and 5 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <misc/slist.h>
|
||||
#include <misc/util.h>
|
||||
#include <kernel_version.h>
|
||||
#include <drivers/rand32.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -3074,12 +3075,10 @@ extern void k_cpu_idle(void);
|
|||
*/
|
||||
extern void k_cpu_atomic_idle(unsigned int key);
|
||||
|
||||
/*
|
||||
* legacy.h must be before arch/cpu.h to allow the ioapic/loapic drivers to
|
||||
* hook into the device subsystem, which itself uses nanokernel semaphores,
|
||||
* and thus currently requires the definition of nano_sem.
|
||||
*/
|
||||
/* Include legacy APIs */
|
||||
#if defined(CONFIG_LEGACY_KERNEL)
|
||||
#include <legacy.h>
|
||||
#endif
|
||||
#include <arch/cpu.h>
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue