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:
Gerard Marull-Paretas 2022-05-06 10:49:15 +02:00 committed by Carles Cufí
parent db508379c2
commit 16811660ee
180 changed files with 581 additions and 581 deletions

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <toolchain.h>
#include <zephyr/toolchain.h>
__weak void *__dso_handle;

View file

@ -10,9 +10,9 @@
*
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <spinlock.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/spinlock.h>
#include <kernel_internal.h>
static struct k_spinlock arc_connect_spinlock;

View file

@ -9,12 +9,12 @@
* @brief codes required for ARC multicore and Zephyr smp support
*
*/
#include <device.h>
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <ksched.h>
#include <soc.h>
#include <init.h>
#include <zephyr/init.h>
#ifndef IRQ_ICI

View file

@ -13,16 +13,16 @@
* This module contains functions for manipulation of the d-cache.
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <sys/util.h>
#include <toolchain.h>
#include <cache.h>
#include <linker/linker-defs.h>
#include <arch/arc/v2/aux_regs.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
#include <zephyr/toolchain.h>
#include <zephyr/cache.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/arch/arc/v2/aux_regs.h>
#include <kernel_internal.h>
#include <sys/__assert.h>
#include <init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/init.h>
#include <stdbool.h>
#if defined(CONFIG_DCACHE_LINE_SIZE_DETECT)

View file

@ -12,12 +12,12 @@
* ARCv2 CPUs.
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <offsets_short.h>
#include <arch/cpu.h>
#include <logging/log.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/logging/log.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);

View file

@ -11,15 +11,15 @@
* Common fault handler for ARCv2 processors.
*/
#include <toolchain.h>
#include <linker/sections.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <inttypes.h>
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_internal.h>
#include <kernel_structs.h>
#include <exc_handle.h>
#include <logging/log.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/exc_handle.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
#ifdef CONFIG_USERSPACE

View file

@ -17,14 +17,14 @@
* number from 16 to last IRQ number on the platform.
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <sys/__assert.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <sw_isr_table.h>
#include <irq.h>
#include <sys/printk.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/irq.h>
#include <zephyr/sys/printk.h>
/*

View file

@ -8,8 +8,8 @@
* @file Software interrupts utility code - ARC implementation
*/
#include <kernel.h>
#include <irq_offload.h>
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>
static irq_offload_routine_t offload_routine;
static const void *offload_param;

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <arch/arc/v2/mpu/arc_core_mpu.h>
#include <kernel_structs.h>
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
#include <zephyr/kernel_structs.h>
/*
* @brief Configure MPU for the thread

View file

@ -4,17 +4,17 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <arch/arc/v2/aux_regs.h>
#include <arch/arc/v2/mpu/arc_mpu.h>
#include <arch/arc/v2/mpu/arc_core_mpu.h>
#include <linker/linker-defs.h>
#include <zephyr/arch/arc/v2/aux_regs.h>
#include <zephyr/arch/arc/v2/mpu/arc_mpu.h>
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
#include <zephyr/linker/linker-defs.h>
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mpu);
/**

View file

@ -22,7 +22,7 @@
* completeness.
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_arch_data.h>
#include <gen_offset.h>
#include <kernel_offsets.h>

View file

@ -17,10 +17,10 @@
*/
#include <zephyr/types.h>
#include <toolchain.h>
#include <linker/linker-defs.h>
#include <arch/arc/v2/aux_regs.h>
#include <kernel_structs.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/arch/arc/v2/aux_regs.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>

View file

@ -4,14 +4,14 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/types.h>
#include <init.h>
#include <toolchain.h>
#include <zephyr/init.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);
/*

View file

@ -4,13 +4,13 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <kernel.h>
#include <arch/cpu.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/types.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)
/*

View file

@ -11,13 +11,13 @@
* Core thread related primitives for the ARCv2 processor architecture.
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <ksched.h>
#include <offsets_short.h>
#include <wait_q.h>
#include <zephyr/wait_q.h>
#ifdef CONFIG_USERSPACE
#include <arch/arc/v2/mpu/arc_core_mpu.h>
#include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
#endif
/* initial stack frame */

View file

@ -11,9 +11,9 @@
* Provide 64-bit time stamp API
*/
#include <kernel.h>
#include <toolchain.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <zephyr/kernel_structs.h>
/*
* @brief Read 64-bit timestamp value

View file

@ -4,11 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.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)
{

View file

@ -24,7 +24,7 @@
*/
#include <zephyr/types.h>
#include <toolchain.h>
#include <zephyr/toolchain.h>
#include "vector_table.h"
struct vector_table {

View file

@ -20,16 +20,16 @@
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h>
#include <linker/sections.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#include <vector_table.h>
#ifndef _ASMLANGUAGE
#include <kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <sys/util.h>
#include <sys/dlist.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/dlist.h>
#ifdef __cplusplus
extern "C" {

View file

@ -9,12 +9,12 @@
#ifndef 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 <toolchain.h>
#include <arch/cpu.h>
#include <arch/arc/tool-compat.h>
#include <arch/arc/asm-compat/assembler.h>
#include <zephyr/toolchain.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arc/tool-compat.h>
#include <zephyr/arch/arc/asm-compat/assembler.h>
#ifdef _ASMLANGUAGE

View file

@ -15,7 +15,7 @@
#ifndef 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
extern "C" {

View file

@ -25,8 +25,8 @@
#ifdef _ASMLANGUAGE
#include <toolchain.h>
#include <linker/sections.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
GTEXT(__start)
GTEXT(_VectorTable)

View file

@ -9,7 +9,7 @@
* @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);

View file

@ -5,10 +5,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_internal.h>
#include <exc_handle.h>
#include <logging/log.h>
#include <zephyr/exc_handle.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
#define FAULT_DUMP_VERBOSE (CONFIG_FAULT_DUMP == 2)

View file

@ -9,8 +9,8 @@
* @brief ARM Cortex-A and Cortex-R interrupt initialization
*/
#include <arch/cpu.h>
#include <drivers/interrupt_controller/gic.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
/**
*

View file

@ -9,9 +9,9 @@
* @brief ARM Cortex-A and Cortex-R System Control Block interface
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
/**
*

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <aarch32/cortex_a_r/stack.h>
#include <string.h>
#include <kernel_internal.h>

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <arch/arm/aarch32/cortex_a_r/cmsis.h>
#include <zephyr/zephyr.h>
#include <zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h>
void z_arm_tcm_disable_ecc(void)
{

View file

@ -5,7 +5,7 @@
*/
#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)
{

View file

@ -24,9 +24,9 @@
#ifdef _ASMLANGUAGE
#include <toolchain.h>
#include <linker/sections.h>
#include <sys/util.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sys/util.h>
GTEXT(__start)
GDATA(_vector_table)

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <zephyr/zephyr.h>
#include <aarch32/cortex_m/cmse.h>
int arm_cmse_mpu_region_get(uint32_t addr)

View file

@ -5,7 +5,7 @@
*/
#include <string.h>
#include <debug/coredump.h>
#include <zephyr/debug/coredump.h>
#define ARCH_HDR_VER 2

View file

@ -10,7 +10,7 @@
*
*/
#include <device.h>
#include <zephyr/device.h>
#include <aarch32/cortex_m/dwt.h>
/**

View file

@ -12,11 +12,11 @@
* Common fault handler for ARM Cortex-M processors.
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_internal.h>
#include <inttypes.h>
#include <exc_handle.h>
#include <logging/log.h>
#include <zephyr/exc_handle.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)

View file

@ -5,9 +5,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <arch/arm/aarch32/cortex_m/fpu.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/arch/arm/aarch32/cortex_m/fpu.h>
/**
* @file @brief Helper functions for saving and restoring the FP context.

View file

@ -10,8 +10,8 @@
*
*/
#include <arch/cpu.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
/**
*

View file

@ -14,11 +14,11 @@
* definitions and more complex routines, if needed.
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <sys/util.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <linker/linker-defs.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/linker/linker-defs.h>
#if defined(CONFIG_CPU_HAS_NXP_MPU)
#include <fsl_sysmpu.h>

View file

@ -5,7 +5,7 @@
*/
#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)
{

View file

@ -16,13 +16,13 @@
* must queue the PendSV exception.
*/
#include <kernel.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <ksched.h>
#include <kswap.h>
#include <wait_q.h>
#include <sys/__assert.h>
#include <zephyr/wait_q.h>
#include <zephyr/sys/__assert.h>
void z_impl_k_thread_abort(k_tid_t thread)
{

View file

@ -11,10 +11,10 @@
*
*/
#include <init.h>
#include <timing/timing.h>
#include <zephyr/init.h>
#include <zephyr/timing/timing.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

View file

@ -4,7 +4,7 @@
* 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/exc.h>

View file

@ -23,9 +23,9 @@
#ifdef _ASMLANGUAGE
#include <toolchain.h>
#include <linker/sections.h>
#include <sys/util.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sys/util.h>
GTEXT(__start)
GDATA(_vector_table)

View file

@ -12,9 +12,9 @@
* and Cortex-R CPUs.
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_arch_data.h>
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
static void esf_dump(const z_arch_esf_t *esf)

View file

@ -14,21 +14,21 @@
* connecting ISRs at runtime.
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#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) \
|| defined(CONFIG_CPU_AARCH32_CORTEX_R)
#include <drivers/interrupt_controller/gic.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
#endif
#include <sys/__assert.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <sw_isr_table.h>
#include <irq.h>
#include <tracing/tracing.h>
#include <pm/pm.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/irq.h>
#include <zephyr/tracing/tracing.h>
#include <zephyr/pm/pm.h>
extern void z_arm_reserved(void);

View file

@ -8,8 +8,8 @@
* @file Software interrupts utility code - ARM implementation
*/
#include <kernel.h>
#include <irq_offload.h>
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>
volatile irq_offload_routine_t offload_routine;
static const void *offload_param;

View file

@ -18,19 +18,19 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <linker/linker-defs.h>
#include <logging/log.h>
#include <sys/__assert.h>
#include <sys/util.h>
#include <sys/mem_manage.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.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"
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

View file

@ -4,17 +4,17 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <kernel_structs.h>
#include <zephyr/kernel_structs.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
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mpu);
/*

View file

@ -4,16 +4,16 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include "arm_core_mpu_dev.h"
#include <linker/linker-defs.h>
#include <zephyr/linker/linker-defs.h>
#include <kernel_arch_data.h>
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(mpu);
#if defined(CONFIG_ARMV8_M_BASELINE) || defined(CONFIG_ARMV8_M_MAINLINE)

View file

@ -9,11 +9,11 @@
#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>
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
/* Global MPU configuration at system initialization. */
static void mpu_init(void)

View file

@ -10,7 +10,7 @@
#include <aarch32/cortex_m/cmse.h>
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
/**
* @brief internal structure holding information of

View file

@ -3,7 +3,7 @@
* Copyright (c) 2019 Lexmark International, Inc.
*/
#include <sys/math_extras.h>
#include <zephyr/sys/math_extras.h>
/**
* Get the number of supported MPU regions.

View file

@ -3,7 +3,7 @@
* Copyright (c) 2019 Lexmark International, Inc.
*/
#include <sys/math_extras.h>
#include <zephyr/sys/math_extras.h>
/**
* Get the number of supported MPU regions.

View file

@ -4,17 +4,17 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include "arm_core_mpu_dev.h"
#include <sys/__assert.h>
#include <sys/math_extras.h>
#include <linker/linker-defs.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/math_extras.h>
#include <zephyr/linker/linker-defs.h>
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(mpu);
/*

View file

@ -13,12 +13,12 @@
* custom run time handler.
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <sys/printk.h>
#include <sys/reboot.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/reboot.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
extern void z_SysNmiOnReset(void);
#if !defined(CONFIG_RUNTIME_NMI)

View file

@ -16,9 +16,9 @@
* initialization is performed.
*/
#include <kernel.h>
#include <zephyr/kernel.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)
#include <aarch32/cortex_a_r/stack.h>

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_internal.h>
extern const int _k_neg_eagain;

View file

@ -12,9 +12,9 @@
* Cortex-R processor architecture.
*/
#include <kernel.h>
#include <zephyr/kernel.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)
#define FP_GUARD_EXTRA_SIZE (MPU_GUARD_ALIGN_AND_SIZE_FLOAT - \

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
#include <kernel_tls.h>
#include <app_memory/app_memdomain.h>
#include <sys/util.h>
#include <zephyr/app_memory/app_memdomain.h>
#include <zephyr/sys/util.h>
#ifdef CONFIG_CPU_CORTEX_M
/*

View file

@ -25,7 +25,7 @@
#ifndef _ARM_OFFSETS_INC_
#define _ARM_OFFSETS_INC_
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_arch_data.h>
#include <kernel_offsets.h>

View file

@ -14,7 +14,7 @@
#ifndef 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
@ -22,7 +22,7 @@
#else
#include <irq_offload.h>
#include <zephyr/irq_offload.h>
#ifdef __cplusplus
extern "C" {

View file

@ -20,7 +20,7 @@
#else
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#ifdef __cplusplus
extern "C" {

View file

@ -14,7 +14,7 @@
#ifndef 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
@ -22,9 +22,9 @@
#else
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <arch/arm/aarch32/exc.h>
#include <irq_offload.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/arch/arm/aarch32/exc.h>
#include <zephyr/irq_offload.h>
#ifdef __cplusplus
extern "C" {

View file

@ -20,7 +20,7 @@
#else
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
#ifdef __cplusplus
extern "C" {

View file

@ -20,9 +20,9 @@
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h>
#include <linker/sections.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#if defined(CONFIG_CPU_CORTEX_M)
#include <aarch32/cortex_m/stack.h>
@ -33,10 +33,10 @@
#endif
#ifndef _ASMLANGUAGE
#include <kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <sys/dlist.h>
#include <sys/atomic.h>
#include <zephyr/sys/dlist.h>
#include <zephyr/sys/atomic.h>
#ifdef __cplusplus
extern "C" {

View file

@ -13,7 +13,7 @@
* 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_MASK BIT_MASK(4)

View file

@ -5,15 +5,15 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <kernel_arch_func.h>
#include <soc.h>
#include <arch/arm64/mm.h>
#include <linker/linker-defs.h>
#include <logging/log.h>
#include <sys/check.h>
#include <zephyr/arch/arm64/mm.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/check.h>
LOG_MODULE_REGISTER(mpu, CONFIG_MPU_LOG_LEVEL);

View file

@ -13,9 +13,9 @@
* exceptions
*/
#include <kernel.h>
#include <logging/log.h>
#include <exc_handle.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/exc_handle.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

View file

@ -5,10 +5,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_arch_interface.h>
#include <arch/cpu.h>
#include <zephyr/arch/cpu.h>
/* to be found in fpu.S */
extern void z_arm64_fpu_save(struct z_arm64_fp_context *saved_fp_context);

View file

@ -9,8 +9,8 @@
* @brief ARM64 Cortex-A interrupt initialisation
*/
#include <arch/cpu.h>
#include <drivers/interrupt_controller/gic.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
/**
* @brief Initialise interrupts

View file

@ -9,14 +9,14 @@
* @brief ARM64 Cortex-A interrupt management
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <tracing/tracing.h>
#include <irq.h>
#include <toolchain.h>
#include <linker/sections.h>
#include <sw_isr_table.h>
#include <drivers/interrupt_controller/gic.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/tracing/tracing.h>
#include <zephyr/irq.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
void z_arm64_fatal_error(unsigned int reason, z_arch_esf_t *esf);

View file

@ -9,8 +9,8 @@
* @brief Software interrupts utility code - ARM64 implementation
*/
#include <kernel.h>
#include <irq_offload.h>
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>
#include <exc.h>
void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)

View file

@ -7,20 +7,20 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <cache.h>
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <zephyr/cache.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <kernel_arch_func.h>
#include <kernel_arch_interface.h>
#include <kernel_internal.h>
#include <logging/log.h>
#include <arch/arm64/cpu.h>
#include <arch/arm64/lib_helpers.h>
#include <arch/arm64/mm.h>
#include <linker/linker-defs.h>
#include <spinlock.h>
#include <sys/util.h>
#include <zephyr/logging/log.h>
#include <zephyr/arch/arm64/cpu.h>
#include <zephyr/arch/arm64/lib_helpers.h>
#include <zephyr/arch/arm64/mm.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/spinlock.h>
#include <zephyr/sys/util.h>
#include "mmu.h"

View file

@ -26,7 +26,7 @@
#define _ARM_OFFSETS_INC_
#include <gen_offset.h>
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_arch_data.h>
#include <kernel_offsets.h>
@ -58,7 +58,7 @@ GEN_ABSOLUTE_SYM(___esf_t_SIZEOF, sizeof(_esf_t));
#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, a2, a2_a3);

View file

@ -15,7 +15,7 @@
*/
#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) { }

View file

@ -10,19 +10,19 @@
* @brief codes required for AArch64 multicore and Zephyr smp support
*/
#include <cache.h>
#include <device.h>
#include <devicetree.h>
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/cache.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <ksched.h>
#include <soc.h>
#include <init.h>
#include <arch/arm64/mm.h>
#include <arch/cpu.h>
#include <drivers/interrupt_controller/gic.h>
#include <drivers/pm_cpu_ops.h>
#include <sys/arch_interface.h>
#include <zephyr/init.h>
#include <zephyr/arch/arm64/mm.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/drivers/interrupt_controller/gic.h>
#include <zephyr/drivers/pm_cpu_ops.h>
#include <zephyr/sys/arch_interface.h>
#include "boot.h"
#define SGI_SCHED_IPI 0

View file

@ -11,10 +11,10 @@
* Core thread related primitives for the ARM64 Cortex-A
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <ksched.h>
#include <wait_q.h>
#include <arch/cpu.h>
#include <zephyr/wait_q.h>
#include <zephyr/arch/cpu.h>
/*
* Note about stack usage:

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
#include <kernel_tls.h>
#include <app_memory/app_memdomain.h>
#include <sys/util.h>
#include <zephyr/app_memory/app_memdomain.h>
#include <zephyr/sys/util.h>
size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)
{

View file

@ -4,17 +4,17 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <arch/arm64/hypercall.h>
#include <xen/events.h>
#include <xen/generic.h>
#include <xen/public/xen.h>
#include <xen/public/memory.h>
#include <zephyr/arch/arm64/hypercall.h>
#include <zephyr/xen/events.h>
#include <zephyr/xen/generic.h>
#include <zephyr/xen/public/xen.h>
#include <zephyr/xen/public/memory.h>
#include <device.h>
#include <init.h>
#include <kernel.h>
#include <kernel/thread.h>
#include <logging/log.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel/thread.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(xen_enlighten);

View file

@ -14,7 +14,7 @@
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
#define ZEPHYR_ARCH_ARM64_INCLUDE_EXC_H_
#include <arch/cpu.h>
#include <zephyr/arch/cpu.h>
#ifdef _ASMLANGUAGE

View file

@ -20,17 +20,17 @@
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_ARM64_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h>
#include <linker/sections.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#include <exc.h>
#ifndef _ASMLANGUAGE
#include <kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <sys/dlist.h>
#include <sys/atomic.h>
#include <zephyr/sys/dlist.h>
#include <zephyr/sys/atomic.h>
#ifdef __cplusplus
extern "C" {

View file

@ -4,10 +4,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <toolchain.h>
#include <linker/sections.h>
#include <sw_isr_table.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/arch/cpu.h>
/* There is an additional member at the end populated by the linker script
* which indicates the number of interrupts specified

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <sw_isr_table.h>
#include <arch/cpu.h>
#include <sys/__assert.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/__assert.h>
/*
* Common code for arches that use software ISR tables (CONFIG_GEN_ISR_TABLES)
*/

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <sys_clock.h>
#include <timing/timing.h>
#include <zephyr/kernel.h>
#include <zephyr/sys_clock.h>
#include <zephyr/timing/timing.h>
void arch_timing_init(void)
{

View file

@ -4,9 +4,9 @@
* 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)
{

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <sys/printk.h>
#include <logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
FUNC_NORETURN void z_mips_fatal_error(unsigned int reason,

View file

@ -6,9 +6,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kswap.h>
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

View file

@ -6,11 +6,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
#include <irq.h>
#include <irq_offload.h>
#include <zephyr/irq.h>
#include <zephyr/irq_offload.h>
volatile irq_offload_routine_t _offload_routine;
static volatile const void *offload_param;

View file

@ -10,7 +10,7 @@
*/
#include <kernel_internal.h>
#include <irq.h>
#include <zephyr/irq.h>
static void interrupt_init(void)
{

View file

@ -6,7 +6,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
extern uint32_t mips_cp0_status_int_mask;

View file

@ -17,14 +17,14 @@
#ifndef ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_MIPS_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/arch/cpu.h>
#ifndef _ASMLANGUAGE
#include <kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <sys/util.h>
#include <sys/dlist.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/dlist.h>
#ifdef __cplusplus
extern "C" {

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <arch/cpu.h>
#include <sys/__assert.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/__assert.h>
/**

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
void arch_cpu_idle(void)
{

View file

@ -4,11 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/kernel_structs.h>
#include <inttypes.h>
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
FUNC_NORETURN void z_nios2_fatal_error(unsigned int reason,

View file

@ -11,15 +11,15 @@
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <arch/cpu.h>
#include <irq.h>
#include <sw_isr_table.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/irq.h>
#include <zephyr/sw_isr_table.h>
#include <ksched.h>
#include <kswap.h>
#include <tracing/tracing.h>
#include <logging/log.h>
#include <zephyr/tracing/tracing.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
FUNC_NORETURN void z_irq_spurious(const void *unused)

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <kernel_structs.h>
#include <irq_offload.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <zephyr/irq_offload.h>
volatile irq_offload_routine_t _offload_routine;
static volatile const void *offload_param;

View file

@ -24,7 +24,7 @@
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <kernel_arch_data.h>
#include <gen_offset.h>
#include <kernel_offsets.h>

View file

@ -17,9 +17,9 @@
*/
#include <zephyr/types.h>
#include <toolchain.h>
#include <linker/linker-defs.h>
#include <kernel_structs.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
/**

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr/kernel.h>
#include <ksched.h>
/* forward declaration to asm function to adjust setup the arguments

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <sys_clock.h>
#include <timing/timing.h>
#include <zephyr/kernel.h>
#include <zephyr/sys_clock.h>
#include <zephyr/timing/timing.h>
#include "altera_avalon_timer_regs.h"
#define NIOS2_SUBTRACT_CLOCK_CYCLES(val) \

View file

@ -21,16 +21,16 @@
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h>
#include <linker/sections.h>
#include <arch/cpu.h>
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#ifndef _ASMLANGUAGE
#include <kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <sys/util.h>
#include <sys/dlist.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/dlist.h>
#ifdef __cplusplus
extern "C" {

Some files were not shown because too many files have changed in this diff Show more