xtensa: move byte-order macros out of arch.h
These are macros that are expected to be defined at all times by the compiler. We need them at the very beginning of kernel.h for the k_thread definition, before it's possible to include arch.h. Make a special toolchain header for XCC compiler and place these defines in there. Otherwise inherit all the other GCC defines. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
99c89e17e3
commit
a2b324035c
3 changed files with 35 additions and 16 deletions
|
@ -15,7 +15,9 @@
|
|||
#ifndef _TOOLCHAIN_H
|
||||
#define _TOOLCHAIN_H
|
||||
|
||||
#if defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__))
|
||||
#if defined(__XCC__)
|
||||
#include <toolchain/xcc.h>
|
||||
#elif defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__))
|
||||
#include <toolchain/gcc.h>
|
||||
#else
|
||||
#include <toolchain/other.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue