From c58b28ab0ace677f913e4cffb82cc676ff588fe0 Mon Sep 17 00:00:00 2001 From: "Charles E. Youse" Date: Thu, 4 Jul 2019 12:28:20 -0700 Subject: [PATCH] arch/x86: add placeholders for Intel64 headers Use different headers for kernel_arch_{func,thread}.h when in CONFIG_X86_LONGMODE, and add placeholders for Intel64 versions. Signed-off-by: Charles E. Youse --- arch/x86/include/intel64/kernel_arch_func.h | 9 +++++++++ arch/x86/include/intel64/kernel_arch_thread.h | 9 +++++++++ arch/x86/include/kernel_arch_func.h | 4 +++- arch/x86/include/kernel_arch_thread.h | 4 +++- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 arch/x86/include/intel64/kernel_arch_func.h create mode 100644 arch/x86/include/intel64/kernel_arch_thread.h diff --git a/arch/x86/include/intel64/kernel_arch_func.h b/arch/x86/include/intel64/kernel_arch_func.h new file mode 100644 index 00000000000..edb2646e6d5 --- /dev/null +++ b/arch/x86/include/intel64/kernel_arch_func.h @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2019 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_ +#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_ + +#endif /* ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_ */ diff --git a/arch/x86/include/intel64/kernel_arch_thread.h b/arch/x86/include/intel64/kernel_arch_thread.h new file mode 100644 index 00000000000..56373d3d015 --- /dev/null +++ b/arch/x86/include/intel64/kernel_arch_thread.h @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2019 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_THREAD_H_ +#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_THREAD_H_ + +#endif /* ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_THREAD_H_ */ diff --git a/arch/x86/include/kernel_arch_func.h b/arch/x86/include/kernel_arch_func.h index 4e26532f3c7..4cb6241a139 100644 --- a/arch/x86/include/kernel_arch_func.h +++ b/arch/x86/include/kernel_arch_func.h @@ -6,7 +6,9 @@ #ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ #define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ -#ifndef CONFIG_X86_LONGMODE +#ifdef CONFIG_X86_LONGMODE +#include +#else #include #endif diff --git a/arch/x86/include/kernel_arch_thread.h b/arch/x86/include/kernel_arch_thread.h index 9f10b34c279..bbb7ef40ede 100644 --- a/arch/x86/include/kernel_arch_thread.h +++ b/arch/x86/include/kernel_arch_thread.h @@ -6,7 +6,9 @@ #ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_ #define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_ -#ifndef CONFIG_X86_LONGMODE +#ifdef CONFIG_X86_LONGMODE +#include +#else #include #endif