arch: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all arch code to the new prefix <zephyr/...>. Note that the conversion has been scripted, refer to zephyrproject-rtos#45388 for more details. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
db508379c2
commit
16811660ee
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
|
|
||||||
__weak void *__dso_handle;
|
__weak void *__dso_handle;
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <spinlock.h>
|
#include <zephyr/spinlock.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
|
|
||||||
static struct k_spinlock arc_connect_spinlock;
|
static struct k_spinlock arc_connect_spinlock;
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
* @brief codes required for ARC multicore and Zephyr smp support
|
* @brief codes required for ARC multicore and Zephyr smp support
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
|
|
||||||
|
|
||||||
#ifndef IRQ_ICI
|
#ifndef IRQ_ICI
|
||||||
|
|
|
@ -13,16 +13,16 @@
|
||||||
* This module contains functions for manipulation of the d-cache.
|
* This module contains functions for manipulation of the d-cache.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <cache.h>
|
#include <zephyr/cache.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <arch/arc/v2/aux_regs.h>
|
#include <zephyr/arch/arc/v2/aux_regs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#if defined(CONFIG_DCACHE_LINE_SIZE_DETECT)
|
#if defined(CONFIG_DCACHE_LINE_SIZE_DETECT)
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
* ARCv2 CPUs.
|
* ARCv2 CPUs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <offsets_short.h>
|
#include <offsets_short.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <arch/arc/v2/exc.h>
|
#include <zephyr/arch/arc/v2/exc.h>
|
||||||
|
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
|
|
|
@ -11,15 +11,15 @@
|
||||||
* Common fault handler for ARCv2 processors.
|
* Common fault handler for ARCv2 processors.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <exc_handle.h>
|
#include <zephyr/exc_handle.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
#ifdef CONFIG_USERSPACE
|
#ifdef CONFIG_USERSPACE
|
||||||
|
|
|
@ -17,14 +17,14 @@
|
||||||
* number from 16 to last IRQ number on the platform.
|
* number from 16 to last IRQ number on the platform.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
#include <sys/printk.h>
|
#include <zephyr/sys/printk.h>
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
* @file Software interrupts utility code - ARC implementation
|
* @file Software interrupts utility code - ARC implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
static irq_offload_routine_t offload_routine;
|
static irq_offload_routine_t offload_routine;
|
||||||
static const void *offload_param;
|
static const void *offload_param;
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <arch/arc/v2/mpu/arc_core_mpu.h>
|
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief Configure MPU for the thread
|
* @brief Configure MPU for the thread
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <arch/arc/v2/aux_regs.h>
|
#include <zephyr/arch/arc/v2/aux_regs.h>
|
||||||
#include <arch/arc/v2/mpu/arc_mpu.h>
|
#include <zephyr/arch/arc/v2/mpu/arc_mpu.h>
|
||||||
#include <arch/arc/v2/mpu/arc_core_mpu.h>
|
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_REGISTER(mpu);
|
LOG_MODULE_REGISTER(mpu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
* completeness.
|
* completeness.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <gen_offset.h>
|
#include <gen_offset.h>
|
||||||
#include <kernel_offsets.h>
|
#include <kernel_offsets.h>
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <arch/arc/v2/aux_regs.h>
|
#include <zephyr/arch/arc/v2/aux_regs.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
|
|
||||||
#include <arch/arc/v2/secureshield/arc_secure.h>
|
#include <zephyr/arch/arc/v2/secureshield/arc_secure.h>
|
||||||
|
|
||||||
static void _default_sjli_entry(void);
|
static void _default_sjli_entry(void);
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
|
|
||||||
#include <arch/arc/v2/secureshield/arc_secure.h>
|
#include <zephyr/arch/arc/v2/secureshield/arc_secure.h>
|
||||||
|
|
||||||
#define IRQ_PRIO_MASK (0xffff << ARC_N_IRQ_START_LEVEL)
|
#define IRQ_PRIO_MASK (0xffff << ARC_N_IRQ_START_LEVEL)
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -11,13 +11,13 @@
|
||||||
* Core thread related primitives for the ARCv2 processor architecture.
|
* Core thread related primitives for the ARCv2 processor architecture.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <offsets_short.h>
|
#include <offsets_short.h>
|
||||||
#include <wait_q.h>
|
#include <zephyr/wait_q.h>
|
||||||
|
|
||||||
#ifdef CONFIG_USERSPACE
|
#ifdef CONFIG_USERSPACE
|
||||||
#include <arch/arc/v2/mpu/arc_core_mpu.h>
|
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* initial stack frame */
|
/* initial stack frame */
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
* Provide 64-bit time stamp API
|
* Provide 64-bit time stamp API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief Read 64-bit timestamp value
|
* @brief Read 64-bit timestamp value
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <kernel_tls.h>
|
#include <kernel_tls.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)
|
size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include "vector_table.h"
|
#include "vector_table.h"
|
||||||
|
|
||||||
struct vector_table {
|
struct vector_table {
|
||||||
|
|
|
@ -20,16 +20,16 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
|
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
|
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <vector_table.h>
|
#include <vector_table.h>
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <sys/dlist.h>
|
#include <zephyr/sys/dlist.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
|
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
|
||||||
#define ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
|
#define ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
|
||||||
|
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <offsets_short.h>
|
#include <offsets_short.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <arch/arc/tool-compat.h>
|
#include <zephyr/arch/arc/tool-compat.h>
|
||||||
#include <arch/arc/asm-compat/assembler.h>
|
#include <zephyr/arch/arc/asm-compat/assembler.h>
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
|
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
|
||||||
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
|
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
|
|
||||||
GTEXT(__start)
|
GTEXT(__start)
|
||||||
GTEXT(_VectorTable)
|
GTEXT(_VectorTable)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* @brief Basic C++ destructor module for globals for ARM
|
* @brief Basic C++ destructor module for globals for ARM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
|
|
||||||
EXTERN_C int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso);
|
EXTERN_C int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso);
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <exc_handle.h>
|
#include <zephyr/exc_handle.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
#define FAULT_DUMP_VERBOSE (CONFIG_FAULT_DUMP == 2)
|
#define FAULT_DUMP_VERBOSE (CONFIG_FAULT_DUMP == 2)
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
* @brief ARM Cortex-A and Cortex-R interrupt initialization
|
* @brief ARM Cortex-A and Cortex-R interrupt initialization
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <drivers/interrupt_controller/gic.h>
|
#include <zephyr/drivers/interrupt_controller/gic.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
* @brief ARM Cortex-A and Cortex-R System Control Block interface
|
* @brief ARM Cortex-A and Cortex-R System Control Block interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <aarch32/cortex_a_r/stack.h>
|
#include <aarch32/cortex_a_r/stack.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
#include <zephyr.h>
|
#include <zephyr/zephyr.h>
|
||||||
#include <arch/arm/aarch32/cortex_a_r/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
|
||||||
|
|
||||||
void z_arm_tcm_disable_ecc(void)
|
void z_arm_tcm_disable_ecc(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <arch/arm/aarch32/cortex_a_r/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
|
||||||
|
|
||||||
bool z_arm_thread_is_in_user_mode(void)
|
bool z_arm_thread_is_in_user_mode(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
GTEXT(__start)
|
GTEXT(__start)
|
||||||
GDATA(_vector_table)
|
GDATA(_vector_table)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zephyr.h>
|
#include <zephyr/zephyr.h>
|
||||||
#include <aarch32/cortex_m/cmse.h>
|
#include <aarch32/cortex_m/cmse.h>
|
||||||
|
|
||||||
int arm_cmse_mpu_region_get(uint32_t addr)
|
int arm_cmse_mpu_region_get(uint32_t addr)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <debug/coredump.h>
|
#include <zephyr/debug/coredump.h>
|
||||||
|
|
||||||
#define ARCH_HDR_VER 2
|
#define ARCH_HDR_VER 2
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <aarch32/cortex_m/dwt.h>
|
#include <aarch32/cortex_m/dwt.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
* Common fault handler for ARM Cortex-M processors.
|
* Common fault handler for ARM Cortex-M processors.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <exc_handle.h>
|
#include <zephyr/exc_handle.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)
|
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/fpu.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/fpu.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file @brief Helper functions for saving and restoring the FP context.
|
* @file @brief Helper functions for saving and restoring the FP context.
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
* definitions and more complex routines, if needed.
|
* definitions and more complex routines, if needed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_HAS_NXP_MPU)
|
#if defined(CONFIG_CPU_HAS_NXP_MPU)
|
||||||
#include <fsl_sysmpu.h>
|
#include <fsl_sysmpu.h>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
|
|
||||||
bool z_arm_thread_is_in_user_mode(void)
|
bool z_arm_thread_is_in_user_mode(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
* must queue the PendSV exception.
|
* must queue the PendSV exception.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <kswap.h>
|
#include <kswap.h>
|
||||||
#include <wait_q.h>
|
#include <zephyr/wait_q.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
|
|
||||||
void z_impl_k_thread_abort(k_tid_t thread)
|
void z_impl_k_thread_abort(k_tid_t thread)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <timing/timing.h>
|
#include <zephyr/timing/timing.h>
|
||||||
#include <aarch32/cortex_m/dwt.h>
|
#include <aarch32/cortex_m/dwt.h>
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Return the current frequency of the cycle counter
|
* @brief Return the current frequency of the cycle counter
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
#include <aarch32/cortex_m/tz.h>
|
#include <aarch32/cortex_m/tz.h>
|
||||||
#include <aarch32/cortex_m/exc.h>
|
#include <aarch32/cortex_m/exc.h>
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
GTEXT(__start)
|
GTEXT(__start)
|
||||||
GDATA(_vector_table)
|
GDATA(_vector_table)
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* and Cortex-R CPUs.
|
* and Cortex-R CPUs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
static void esf_dump(const z_arch_esf_t *esf)
|
static void esf_dump(const z_arch_esf_t *esf)
|
||||||
|
|
|
@ -14,21 +14,21 @@
|
||||||
* connecting ISRs at runtime.
|
* connecting ISRs at runtime.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#if defined(CONFIG_CPU_CORTEX_M)
|
#if defined(CONFIG_CPU_CORTEX_M)
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A) \
|
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A) \
|
||||||
|| defined(CONFIG_CPU_AARCH32_CORTEX_R)
|
|| defined(CONFIG_CPU_AARCH32_CORTEX_R)
|
||||||
#include <drivers/interrupt_controller/gic.h>
|
#include <zephyr/drivers/interrupt_controller/gic.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
#include <tracing/tracing.h>
|
#include <zephyr/tracing/tracing.h>
|
||||||
#include <pm/pm.h>
|
#include <zephyr/pm/pm.h>
|
||||||
|
|
||||||
extern void z_arm_reserved(void);
|
extern void z_arm_reserved(void);
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
* @file Software interrupts utility code - ARM implementation
|
* @file Software interrupts utility code - ARM implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
volatile irq_offload_routine_t offload_routine;
|
volatile irq_offload_routine_t offload_routine;
|
||||||
static const void *offload_param;
|
static const void *offload_param;
|
||||||
|
|
|
@ -18,19 +18,19 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
|
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <sys/mem_manage.h>
|
#include <zephyr/sys/mem_manage.h>
|
||||||
|
|
||||||
#include <arch/arm/aarch32/cortex_a_r/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
|
||||||
|
|
||||||
#include <arch/arm/aarch32/mmu/arm_mmu.h>
|
#include <zephyr/arch/arm/aarch32/mmu/arm_mmu.h>
|
||||||
#include "arm_mmu_priv.h"
|
#include "arm_mmu_priv.h"
|
||||||
|
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
|
|
||||||
#include "arm_core_mpu_dev.h"
|
#include "arm_core_mpu_dev.h"
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_REGISTER(mpu);
|
LOG_MODULE_REGISTER(mpu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include "arm_core_mpu_dev.h"
|
#include "arm_core_mpu_dev.h"
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
|
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(mpu);
|
LOG_MODULE_DECLARE(mpu);
|
||||||
|
|
||||||
#if defined(CONFIG_ARMV8_M_BASELINE) || defined(CONFIG_ARMV8_M_MAINLINE)
|
#if defined(CONFIG_ARMV8_M_BASELINE) || defined(CONFIG_ARMV8_M_MAINLINE)
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_
|
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_
|
||||||
|
|
||||||
|
|
||||||
#include <sys/math_extras.h>
|
#include <zephyr/sys/math_extras.h>
|
||||||
#include <arm_mpu_internal.h>
|
#include <arm_mpu_internal.h>
|
||||||
|
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
|
|
||||||
/* Global MPU configuration at system initialization. */
|
/* Global MPU configuration at system initialization. */
|
||||||
static void mpu_init(void)
|
static void mpu_init(void)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include <aarch32/cortex_m/cmse.h>
|
#include <aarch32/cortex_m/cmse.h>
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief internal structure holding information of
|
* @brief internal structure holding information of
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Copyright (c) 2019 Lexmark International, Inc.
|
* Copyright (c) 2019 Lexmark International, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/math_extras.h>
|
#include <zephyr/sys/math_extras.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the number of supported MPU regions.
|
* Get the number of supported MPU regions.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Copyright (c) 2019 Lexmark International, Inc.
|
* Copyright (c) 2019 Lexmark International, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/math_extras.h>
|
#include <zephyr/sys/math_extras.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the number of supported MPU regions.
|
* Get the number of supported MPU regions.
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include "arm_core_mpu_dev.h"
|
#include "arm_core_mpu_dev.h"
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
#include <sys/math_extras.h>
|
#include <zephyr/sys/math_extras.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(mpu);
|
LOG_MODULE_DECLARE(mpu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
* custom run time handler.
|
* custom run time handler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/printk.h>
|
#include <zephyr/sys/printk.h>
|
||||||
#include <sys/reboot.h>
|
#include <zephyr/sys/reboot.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
|
|
||||||
extern void z_SysNmiOnReset(void);
|
extern void z_SysNmiOnReset(void);
|
||||||
#if !defined(CONFIG_RUNTIME_NMI)
|
#if !defined(CONFIG_RUNTIME_NMI)
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
* initialization is performed.
|
* initialization is performed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
#if defined(CONFIG_ARMV7_R) || defined(CONFIG_ARMV7_A)
|
#if defined(CONFIG_ARMV7_R) || defined(CONFIG_ARMV7_A)
|
||||||
#include <aarch32/cortex_a_r/stack.h>
|
#include <aarch32/cortex_a_r/stack.h>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
|
|
||||||
extern const int _k_neg_eagain;
|
extern const int _k_neg_eagain;
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
* Cortex-R processor architecture.
|
* Cortex-R processor architecture.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <wait_q.h>
|
#include <zephyr/wait_q.h>
|
||||||
|
|
||||||
#if (MPU_GUARD_ALIGN_AND_SIZE_FLOAT > MPU_GUARD_ALIGN_AND_SIZE)
|
#if (MPU_GUARD_ALIGN_AND_SIZE_FLOAT > MPU_GUARD_ALIGN_AND_SIZE)
|
||||||
#define FP_GUARD_EXTRA_SIZE (MPU_GUARD_ALIGN_AND_SIZE_FLOAT - \
|
#define FP_GUARD_EXTRA_SIZE (MPU_GUARD_ALIGN_AND_SIZE_FLOAT - \
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <kernel_tls.h>
|
#include <kernel_tls.h>
|
||||||
#include <app_memory/app_memdomain.h>
|
#include <zephyr/app_memory/app_memdomain.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_CORTEX_M
|
#ifdef CONFIG_CPU_CORTEX_M
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#ifndef _ARM_OFFSETS_INC_
|
#ifndef _ARM_OFFSETS_INC_
|
||||||
#define _ARM_OFFSETS_INC_
|
#define _ARM_OFFSETS_INC_
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <kernel_offsets.h>
|
#include <kernel_offsets.h>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_EXC_H_
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_EXC_H_
|
||||||
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_EXC_H_
|
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_A_R_EXC_H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_EXC_H_
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_EXC_H_
|
||||||
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_EXC_H_
|
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_M_EXC_H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
#include <arch/arm/aarch32/exc.h>
|
#include <zephyr/arch/arm/aarch32/exc.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <arch/arm/aarch32/cortex_m/cmsis.h>
|
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_CORTEX_M)
|
#if defined(CONFIG_CPU_CORTEX_M)
|
||||||
#include <aarch32/cortex_m/stack.h>
|
#include <aarch32/cortex_m/stack.h>
|
||||||
|
@ -33,10 +33,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <sys/dlist.h>
|
#include <zephyr/sys/dlist.h>
|
||||||
#include <sys/atomic.h>
|
#include <zephyr/sys/atomic.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* This module contains functions for manipulation of the d-cache.
|
* This module contains functions for manipulation of the d-cache.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cache.h>
|
#include <zephyr/cache.h>
|
||||||
|
|
||||||
#define CTR_EL0_DMINLINE_SHIFT 16
|
#define CTR_EL0_DMINLINE_SHIFT 16
|
||||||
#define CTR_EL0_DMINLINE_MASK BIT_MASK(4)
|
#define CTR_EL0_DMINLINE_MASK BIT_MASK(4)
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_func.h>
|
#include <kernel_arch_func.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <arch/arm64/mm.h>
|
#include <zephyr/arch/arm64/mm.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <sys/check.h>
|
#include <zephyr/sys/check.h>
|
||||||
|
|
||||||
LOG_MODULE_REGISTER(mpu, CONFIG_MPU_LOG_LEVEL);
|
LOG_MODULE_REGISTER(mpu, CONFIG_MPU_LOG_LEVEL);
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
* exceptions
|
* exceptions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <exc_handle.h>
|
#include <zephyr/exc_handle.h>
|
||||||
|
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_arch_interface.h>
|
#include <kernel_arch_interface.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
/* to be found in fpu.S */
|
/* to be found in fpu.S */
|
||||||
extern void z_arm64_fpu_save(struct z_arm64_fp_context *saved_fp_context);
|
extern void z_arm64_fpu_save(struct z_arm64_fp_context *saved_fp_context);
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
* @brief ARM64 Cortex-A interrupt initialisation
|
* @brief ARM64 Cortex-A interrupt initialisation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <drivers/interrupt_controller/gic.h>
|
#include <zephyr/drivers/interrupt_controller/gic.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialise interrupts
|
* @brief Initialise interrupts
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
* @brief ARM64 Cortex-A interrupt management
|
* @brief ARM64 Cortex-A interrupt management
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <tracing/tracing.h>
|
#include <zephyr/tracing/tracing.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <drivers/interrupt_controller/gic.h>
|
#include <zephyr/drivers/interrupt_controller/gic.h>
|
||||||
|
|
||||||
void z_arm64_fatal_error(unsigned int reason, z_arch_esf_t *esf);
|
void z_arm64_fatal_error(unsigned int reason, z_arch_esf_t *esf);
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
* @brief Software interrupts utility code - ARM64 implementation
|
* @brief Software interrupts utility code - ARM64 implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
#include <exc.h>
|
#include <exc.h>
|
||||||
|
|
||||||
void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)
|
void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)
|
||||||
|
|
|
@ -7,20 +7,20 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cache.h>
|
#include <zephyr/cache.h>
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_func.h>
|
#include <kernel_arch_func.h>
|
||||||
#include <kernel_arch_interface.h>
|
#include <kernel_arch_interface.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <arch/arm64/cpu.h>
|
#include <zephyr/arch/arm64/cpu.h>
|
||||||
#include <arch/arm64/lib_helpers.h>
|
#include <zephyr/arch/arm64/lib_helpers.h>
|
||||||
#include <arch/arm64/mm.h>
|
#include <zephyr/arch/arm64/mm.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <spinlock.h>
|
#include <zephyr/spinlock.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
#include "mmu.h"
|
#include "mmu.h"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#define _ARM_OFFSETS_INC_
|
#define _ARM_OFFSETS_INC_
|
||||||
|
|
||||||
#include <gen_offset.h>
|
#include <gen_offset.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <kernel_offsets.h>
|
#include <kernel_offsets.h>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ GEN_ABSOLUTE_SYM(___esf_t_SIZEOF, sizeof(_esf_t));
|
||||||
|
|
||||||
#ifdef CONFIG_HAS_ARM_SMCCC
|
#ifdef CONFIG_HAS_ARM_SMCCC
|
||||||
|
|
||||||
#include <arch/arm64/arm-smccc.h>
|
#include <zephyr/arch/arm64/arm-smccc.h>
|
||||||
|
|
||||||
GEN_NAMED_OFFSET_SYM(arm_smccc_res_t, a0, a0_a1);
|
GEN_NAMED_OFFSET_SYM(arm_smccc_res_t, a0, a0_a1);
|
||||||
GEN_NAMED_OFFSET_SYM(arm_smccc_res_t, a2, a2_a3);
|
GEN_NAMED_OFFSET_SYM(arm_smccc_res_t, a2, a2_a3);
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
__weak void z_arm64_mm_init(bool is_primary_core) { }
|
__weak void z_arm64_mm_init(bool is_primary_core) { }
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,19 @@
|
||||||
* @brief codes required for AArch64 multicore and Zephyr smp support
|
* @brief codes required for AArch64 multicore and Zephyr smp support
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cache.h>
|
#include <zephyr/cache.h>
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <devicetree.h>
|
#include <zephyr/devicetree.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <arch/arm64/mm.h>
|
#include <zephyr/arch/arm64/mm.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <drivers/interrupt_controller/gic.h>
|
#include <zephyr/drivers/interrupt_controller/gic.h>
|
||||||
#include <drivers/pm_cpu_ops.h>
|
#include <zephyr/drivers/pm_cpu_ops.h>
|
||||||
#include <sys/arch_interface.h>
|
#include <zephyr/sys/arch_interface.h>
|
||||||
#include "boot.h"
|
#include "boot.h"
|
||||||
|
|
||||||
#define SGI_SCHED_IPI 0
|
#define SGI_SCHED_IPI 0
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
* Core thread related primitives for the ARM64 Cortex-A
|
* Core thread related primitives for the ARM64 Cortex-A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <wait_q.h>
|
#include <zephyr/wait_q.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note about stack usage:
|
* Note about stack usage:
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <kernel_tls.h>
|
#include <kernel_tls.h>
|
||||||
#include <app_memory/app_memdomain.h>
|
#include <zephyr/app_memory/app_memdomain.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
||||||
size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)
|
size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/arm64/hypercall.h>
|
#include <zephyr/arch/arm64/hypercall.h>
|
||||||
#include <xen/events.h>
|
#include <zephyr/xen/events.h>
|
||||||
#include <xen/generic.h>
|
#include <zephyr/xen/generic.h>
|
||||||
#include <xen/public/xen.h>
|
#include <zephyr/xen/public/xen.h>
|
||||||
#include <xen/public/memory.h>
|
#include <zephyr/xen/public/memory.h>
|
||||||
|
|
||||||
#include <device.h>
|
#include <zephyr/device.h>
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel/thread.h>
|
#include <zephyr/kernel/thread.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
|
|
||||||
LOG_MODULE_REGISTER(xen_enlighten);
|
LOG_MODULE_REGISTER(xen_enlighten);
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
|
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
|
||||||
#define ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
|
#define ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifdef _ASMLANGUAGE
|
#ifdef _ASMLANGUAGE
|
||||||
|
|
||||||
|
|
|
@ -20,17 +20,17 @@
|
||||||
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
|
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
#define ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
|
#define ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#include <exc.h>
|
#include <exc.h>
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <sys/dlist.h>
|
#include <zephyr/sys/dlist.h>
|
||||||
#include <sys/atomic.h>
|
#include <zephyr/sys/atomic.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
/* There is an additional member at the end populated by the linker script
|
/* There is an additional member at the end populated by the linker script
|
||||||
* which indicates the number of interrupts specified
|
* which indicates the number of interrupts specified
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
/*
|
/*
|
||||||
* Common code for arches that use software ISR tables (CONFIG_GEN_ISR_TABLES)
|
* Common code for arches that use software ISR tables (CONFIG_GEN_ISR_TABLES)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <sys_clock.h>
|
#include <zephyr/sys_clock.h>
|
||||||
#include <timing/timing.h>
|
#include <zephyr/timing/timing.h>
|
||||||
|
|
||||||
void arch_timing_init(void)
|
void arch_timing_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
|
|
||||||
#include <tracing/tracing.h>
|
#include <zephyr/tracing/tracing.h>
|
||||||
|
|
||||||
static ALWAYS_INLINE void mips_idle(unsigned int key)
|
static ALWAYS_INLINE void mips_idle(unsigned int key)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <sys/printk.h>
|
#include <zephyr/sys/printk.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
FUNC_NORETURN void z_mips_fatal_error(unsigned int reason,
|
FUNC_NORETURN void z_mips_fatal_error(unsigned int reason,
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kswap.h>
|
#include <kswap.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
volatile irq_offload_routine_t _offload_routine;
|
volatile irq_offload_routine_t _offload_routine;
|
||||||
static volatile const void *offload_param;
|
static volatile const void *offload_param;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
|
|
||||||
static void interrupt_init(void)
|
static void interrupt_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
|
|
||||||
extern uint32_t mips_cp0_status_int_mask;
|
extern uint32_t mips_cp0_status_int_mask;
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,14 @@
|
||||||
#ifndef ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
|
#ifndef ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
#define ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
|
#define ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <sys/dlist.h>
|
#include <zephyr/sys/dlist.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <sys/__assert.h>
|
#include <zephyr/sys/__assert.h>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
|
|
||||||
void arch_cpu_idle(void)
|
void arch_cpu_idle(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
FUNC_NORETURN void z_nios2_fatal_error(unsigned int reason,
|
FUNC_NORETURN void z_nios2_fatal_error(unsigned int reason,
|
||||||
|
|
|
@ -11,15 +11,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
#include <irq.h>
|
#include <zephyr/irq.h>
|
||||||
#include <sw_isr_table.h>
|
#include <zephyr/sw_isr_table.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <kswap.h>
|
#include <kswap.h>
|
||||||
#include <tracing/tracing.h>
|
#include <zephyr/tracing/tracing.h>
|
||||||
#include <logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||||
|
|
||||||
FUNC_NORETURN void z_irq_spurious(const void *unused)
|
FUNC_NORETURN void z_irq_spurious(const void *unused)
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
|
|
||||||
volatile irq_offload_routine_t _offload_routine;
|
volatile irq_offload_routine_t _offload_routine;
|
||||||
static volatile const void *offload_param;
|
static volatile const void *offload_param;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <kernel_arch_data.h>
|
#include <kernel_arch_data.h>
|
||||||
#include <gen_offset.h>
|
#include <gen_offset.h>
|
||||||
#include <kernel_offsets.h>
|
#include <kernel_offsets.h>
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/linker-defs.h>
|
#include <zephyr/linker/linker-defs.h>
|
||||||
#include <kernel_structs.h>
|
#include <zephyr/kernel_structs.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
|
|
||||||
/* forward declaration to asm function to adjust setup the arguments
|
/* forward declaration to asm function to adjust setup the arguments
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <sys_clock.h>
|
#include <zephyr/sys_clock.h>
|
||||||
#include <timing/timing.h>
|
#include <zephyr/timing/timing.h>
|
||||||
#include "altera_avalon_timer_regs.h"
|
#include "altera_avalon_timer_regs.h"
|
||||||
|
|
||||||
#define NIOS2_SUBTRACT_CLOCK_CYCLES(val) \
|
#define NIOS2_SUBTRACT_CLOCK_CYCLES(val) \
|
||||||
|
|
|
@ -21,16 +21,16 @@
|
||||||
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
|
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
|
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <zephyr/toolchain.h>
|
||||||
#include <linker/sections.h>
|
#include <zephyr/linker/sections.h>
|
||||||
#include <arch/cpu.h>
|
#include <zephyr/arch/cpu.h>
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <sys/dlist.h>
|
#include <zephyr/sys/dlist.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue