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 <charles.youse@intel.com>
This commit is contained in:
parent
5e10d590c6
commit
c58b28ab0a
4 changed files with 24 additions and 2 deletions
9
arch/x86/include/intel64/kernel_arch_func.h
Normal file
9
arch/x86/include/intel64/kernel_arch_func.h
Normal file
|
@ -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_ */
|
9
arch/x86/include/intel64/kernel_arch_thread.h
Normal file
9
arch/x86/include/intel64/kernel_arch_thread.h
Normal file
|
@ -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_ */
|
|
@ -6,7 +6,9 @@
|
||||||
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
|
||||||
#define 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 <intel64/kernel_arch_func.h>
|
||||||
|
#else
|
||||||
#include <ia32/kernel_arch_func.h>
|
#include <ia32/kernel_arch_func.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_
|
||||||
#define 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 <intel64/kernel_arch_thread.h>
|
||||||
|
#else
|
||||||
#include <ia32/kernel_arch_thread.h>
|
#include <ia32/kernel_arch_thread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue