kernel: Fix nano_internal.h inclusion
_Swap() is defined in nano_internal.h. Everything calls _Swap(). Pretty much nothing that called _Swap() included nano_internal.h, expecting it to be picked up automatically through other headers (as it happened, from the kernel arch-specific include file). A new _Swap() is going to need some other symbols in the inline definition, so I needed to break that cycle. Now nothing sees _Swap() defined anymore. Put nano_internal.h everywhere it's needed. Our kernel includes remain a big awful yucky mess. This makes things more correct but no less ugly. Needs cleanup. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
837dd99a0e
commit
32a444c54e
18 changed files with 18 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <ksched.h>
|
||||
#include <misc/slist.h>
|
||||
#include <init.h>
|
||||
#include <nano_internal.h>
|
||||
|
||||
extern struct k_queue _k_queue_list_start[];
|
||||
extern struct k_queue _k_queue_list_end[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue