33 lines
691 B
C
33 lines
691 B
C
/*
|
|
* Copyright (c) 2017 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _XCC_TOOLCHAIN_H_
|
|
#define _XCC_TOOLCHAIN_H_
|
|
|
|
#include <toolchain/gcc.h>
|
|
|
|
#ifndef __GCC_LINKER_CMD__
|
|
#include <xtensa/config/core.h>
|
|
|
|
/*
|
|
* XCC does not define the following macros with the expected names, but the
|
|
* HAL defines similar ones. Thus we include it and define the missing macros
|
|
* ourselves.
|
|
*/
|
|
#ifndef __BYTE_ORDER__
|
|
#define __BYTE_ORDER__ XCHAL_MEMORY_ORDER
|
|
#endif
|
|
#ifndef __ORDER_BIG_ENDIAN__
|
|
#define __ORDER_BIG_ENDIAN__ XTHAL_BIGENDIAN
|
|
#endif
|
|
#ifndef __ORDER_LITTLE_ENDIAN__
|
|
#define __ORDER_LITTLE_ENDIAN__ XTHAL_LITTLEENDIAN
|
|
#endif
|
|
|
|
#endif /* __GCC_LINKER_CMD__ */
|
|
|
|
#endif
|