This is part of the core kernel -> architecture interface and is appropriately renamed z_arch_is_in_isr(). References from test cases changed to k_is_in_isr(). Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
23 lines
516 B
C
23 lines
516 B
C
/*
|
|
* Copyright (c) 2019 Intel Corporation
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
|
|
#define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
|
|
|
|
#ifdef CONFIG_X86_LONGMODE
|
|
#include <intel64/kernel_arch_func.h>
|
|
#else
|
|
#include <ia32/kernel_arch_func.h>
|
|
#endif
|
|
|
|
#define z_arch_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_ */
|