mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
a203d21962
UP should just use _kernel.cpus[0]. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
50 lines
771 B
C
50 lines
771 B
C
/*
|
|
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief Exception/interrupt context helpers for Cortex-A CPUs
|
|
*
|
|
* Exception/interrupt context helpers.
|
|
*/
|
|
|
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH64_EXC_H_
|
|
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH64_EXC_H_
|
|
|
|
#include <arch/cpu.h>
|
|
|
|
#ifdef _ASMLANGUAGE
|
|
|
|
/* nothing */
|
|
|
|
#else
|
|
|
|
#include <irq_offload.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(CONFIG_IRQ_OFFLOAD)
|
|
extern void z_arm64_offload(void);
|
|
#endif
|
|
|
|
static ALWAYS_INLINE bool arch_is_in_isr(void)
|
|
{
|
|
return _kernel.cpus[0].nested != 0U;
|
|
}
|
|
|
|
|
|
extern void z_arm64_call_svc(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_AARCH64_EXC_H_ */
|