arch/x86: share declaration of _interrupt_stack
This is moved from arch/x86/include/ia32/kernel_arch_func.h to the common header arch/x86/include/kernel_arch_func.h so it can be shared. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
a8de9577c9
commit
a1afde043c
2 changed files with 6 additions and 2 deletions
|
@ -23,8 +23,6 @@ extern "C" {
|
||||||
#define STACK_ROUND_UP(x) ROUND_UP(x, STACK_ALIGN_SIZE)
|
#define STACK_ROUND_UP(x) ROUND_UP(x, STACK_ALIGN_SIZE)
|
||||||
#define STACK_ROUND_DOWN(x) ROUND_DOWN(x, STACK_ALIGN_SIZE)
|
#define STACK_ROUND_DOWN(x) ROUND_DOWN(x, STACK_ALIGN_SIZE)
|
||||||
|
|
||||||
extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
|
|
||||||
|
|
||||||
#ifdef CONFIG_X86_VERY_EARLY_CONSOLE
|
#ifdef CONFIG_X86_VERY_EARLY_CONSOLE
|
||||||
/* Setup ultra-minimal serial driver for printk() */
|
/* Setup ultra-minimal serial driver for printk() */
|
||||||
void z_x86_early_serial_init(void);
|
void z_x86_early_serial_init(void);
|
||||||
|
|
|
@ -14,4 +14,10 @@
|
||||||
|
|
||||||
#define z_is_in_isr() (_kernel.nested != 0U)
|
#define z_is_in_isr() (_kernel.nested != 0U)
|
||||||
|
|
||||||
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
|
extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ */
|
#endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue