2019-01-02 11:41:55 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (C) 2019 Cadence Design Systems Inc. */
|
|
|
|
|
|
|
|
#ifndef _ASM_XTENSA_CORE_H
|
|
|
|
#define _ASM_XTENSA_CORE_H
|
|
|
|
|
|
|
|
#include <variant/core.h>
|
|
|
|
|
2018-12-21 09:18:12 +08:00
|
|
|
#ifndef XCHAL_HAVE_EXCLUSIVE
|
|
|
|
#define XCHAL_HAVE_EXCLUSIVE 0
|
|
|
|
#endif
|
|
|
|
|
2020-02-01 13:20:58 +08:00
|
|
|
#ifndef XCHAL_HAVE_EXTERN_REGS
|
|
|
|
#define XCHAL_HAVE_EXTERN_REGS 0
|
|
|
|
#endif
|
|
|
|
|
2019-05-07 07:47:41 +08:00
|
|
|
#ifndef XCHAL_HAVE_MPU
|
|
|
|
#define XCHAL_HAVE_MPU 0
|
|
|
|
#endif
|
|
|
|
|
2020-02-01 13:20:58 +08:00
|
|
|
#ifndef XCHAL_HAVE_VECBASE
|
|
|
|
#define XCHAL_HAVE_VECBASE 0
|
|
|
|
#endif
|
|
|
|
|
2019-01-02 11:41:55 +08:00
|
|
|
#ifndef XCHAL_SPANNING_WAY
|
|
|
|
#define XCHAL_SPANNING_WAY 0
|
|
|
|
#endif
|
|
|
|
|
2021-05-02 06:30:06 +08:00
|
|
|
#if XCHAL_HAVE_WINDOWED
|
|
|
|
#if defined(CONFIG_USER_ABI_DEFAULT) || defined(CONFIG_USER_ABI_CALL0_PROBE)
|
|
|
|
/* Whether windowed ABI is supported in userspace. */
|
|
|
|
#define USER_SUPPORT_WINDOWED
|
|
|
|
#endif
|
|
|
|
#if defined(__XTENSA_WINDOWED_ABI__) || defined(USER_SUPPORT_WINDOWED)
|
|
|
|
/* Whether windowed ABI is supported either in userspace or in the kernel. */
|
|
|
|
#define SUPPORT_WINDOWED
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2019-01-02 11:41:55 +08:00
|
|
|
#endif
|