Browse Source

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>
pull/45444/head
Gerard Marull-Paretas 3 years ago committed by Carles Cufí
parent
commit
16811660ee
  1. 2
      arch/arc/arcmwdt/arcmwdt-dtr-stubs.c
  2. 6
      arch/arc/core/arc_connect.c
  3. 8
      arch/arc/core/arc_smp.c
  4. 18
      arch/arc/core/cache.c
  5. 8
      arch/arc/core/fatal.c
  6. 12
      arch/arc/core/fault.c
  7. 16
      arch/arc/core/irq_manage.c
  8. 4
      arch/arc/core/irq_offload.c
  9. 10
      arch/arc/core/mpu/arc_core_mpu.c
  10. 16
      arch/arc/core/mpu/arc_mpu.c
  11. 2
      arch/arc/core/offsets/offsets.c
  12. 8
      arch/arc/core/prep_c.c
  13. 10
      arch/arc/core/secureshield/arc_sjli.c
  14. 8
      arch/arc/core/secureshield/secure_sys_services.c
  15. 6
      arch/arc/core/thread.c
  16. 6
      arch/arc/core/timestamp.c
  17. 6
      arch/arc/core/tls.c
  18. 2
      arch/arc/core/vector_table.c
  19. 12
      arch/arc/include/kernel_arch_data.h
  20. 10
      arch/arc/include/swap_macros.h
  21. 2
      arch/arc/include/v2/irq.h
  22. 4
      arch/arc/include/vector_table.h
  23. 2
      arch/arm/core/aarch32/__aeabi_atexit.c
  24. 6
      arch/arm/core/aarch32/cortex_a_r/fault.c
  25. 4
      arch/arm/core/aarch32/cortex_a_r/irq_init.c
  26. 6
      arch/arm/core/aarch32/cortex_a_r/reboot.c
  27. 2
      arch/arm/core/aarch32/cortex_a_r/stacks.c
  28. 4
      arch/arm/core/aarch32/cortex_a_r/tcm.c
  29. 2
      arch/arm/core/aarch32/cortex_a_r/thread.c
  30. 6
      arch/arm/core/aarch32/cortex_a_r/vector_table.h
  31. 2
      arch/arm/core/aarch32/cortex_m/cmse/arm_core_cmse.c
  32. 2
      arch/arm/core/aarch32/cortex_m/coredump.c
  33. 2
      arch/arm/core/aarch32/cortex_m/debug.c
  34. 6
      arch/arm/core/aarch32/cortex_m/fault.c
  35. 6
      arch/arm/core/aarch32/cortex_m/fpu.c
  36. 4
      arch/arm/core/aarch32/cortex_m/irq_init.c
  37. 10
      arch/arm/core/aarch32/cortex_m/scb.c
  38. 2
      arch/arm/core/aarch32/cortex_m/thread.c
  39. 10
      arch/arm/core/aarch32/cortex_m/thread_abort.c
  40. 6
      arch/arm/core/aarch32/cortex_m/timing.c
  41. 2
      arch/arm/core/aarch32/cortex_m/tz/arm_core_tz.c
  42. 6
      arch/arm/core/aarch32/cortex_m/vector_table.h
  43. 4
      arch/arm/core/aarch32/fatal.c
  44. 22
      arch/arm/core/aarch32/irq_manage.c
  45. 4
      arch/arm/core/aarch32/irq_offload.c
  46. 20
      arch/arm/core/aarch32/mmu/arm_mmu.c
  47. 12
      arch/arm/core/aarch32/mpu/arm_core_mpu.c
  48. 10
      arch/arm/core/aarch32/mpu/arm_mpu.c
  49. 4
      arch/arm/core/aarch32/mpu/arm_mpu_v7_internal.h
  50. 2
      arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h
  51. 2
      arch/arm/core/aarch32/mpu/cortex_a_r/arm_mpu_internal.h
  52. 2
      arch/arm/core/aarch32/mpu/cortex_m/arm_mpu_internal.h
  53. 14
      arch/arm/core/aarch32/mpu/nxp_mpu.c
  54. 12
      arch/arm/core/aarch32/nmi.c
  55. 4
      arch/arm/core/aarch32/prep_c.c
  56. 2
      arch/arm/core/aarch32/swap.c
  57. 4
      arch/arm/core/aarch32/thread.c
  58. 8
      arch/arm/core/common/tls.c
  59. 2
      arch/arm/core/offsets/offsets_aarch32.c
  60. 4
      arch/arm/include/aarch32/cortex_a_r/exc.h
  61. 2
      arch/arm/include/aarch32/cortex_m/dwt.h
  62. 8
      arch/arm/include/aarch32/cortex_m/exc.h
  63. 2
      arch/arm/include/aarch32/cortex_m/stack.h
  64. 12
      arch/arm/include/kernel_arch_data.h
  65. 2
      arch/arm64/core/cache.c
  66. 14
      arch/arm64/core/cortex_r/arm_mpu.c
  67. 6
      arch/arm64/core/fatal.c
  68. 6
      arch/arm64/core/fpu.c
  69. 4
      arch/arm64/core/irq_init.c
  70. 16
      arch/arm64/core/irq_manage.c
  71. 4
      arch/arm64/core/irq_offload.c
  72. 22
      arch/arm64/core/mmu.c
  73. 4
      arch/arm64/core/offsets/offsets.c
  74. 2
      arch/arm64/core/prep_c.c
  75. 22
      arch/arm64/core/smp.c
  76. 6
      arch/arm64/core/thread.c
  77. 8
      arch/arm64/core/tls.c
  78. 20
      arch/arm64/core/xen/enlighten.c
  79. 2
      arch/arm64/include/exc.h
  80. 12
      arch/arm64/include/kernel_arch_data.h
  81. 8
      arch/common/isr_tables.c
  82. 6
      arch/common/sw_isr_common.c
  83. 6
      arch/common/timing.c
  84. 4
      arch/mips/core/cpu_idle.c
  85. 6
      arch/mips/core/fatal.c
  86. 4
      arch/mips/core/irq_manage.c
  87. 8
      arch/mips/core/irq_offload.c
  88. 2
      arch/mips/core/prep_c.c
  89. 2
      arch/mips/core/thread.c
  90. 10
      arch/mips/include/kernel_arch_data.h
  91. 4
      arch/nios2/core/cache.c
  92. 4
      arch/nios2/core/cpu_idle.c
  93. 8
      arch/nios2/core/fatal.c
  94. 14
      arch/nios2/core/irq_manage.c
  95. 6
      arch/nios2/core/irq_offload.c
  96. 2
      arch/nios2/core/offsets/offsets.c
  97. 6
      arch/nios2/core/prep_c.c
  98. 2
      arch/nios2/core/thread.c
  99. 6
      arch/nios2/core/timing.c
  100. 12
      arch/nios2/include/kernel_arch_data.h
  101. Some files were not shown because too many files have changed in this diff Show More

2
arch/arc/arcmwdt/arcmwdt-dtr-stubs.c

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

6
arch/arc/core/arc_connect.c

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

8
arch/arc/core/arc_smp.c

@ -9,12 +9,12 @@ @@ -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

18
arch/arc/core/cache.c

@ -13,16 +13,16 @@ @@ -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)

8
arch/arc/core/fatal.c

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

12
arch/arc/core/fault.c

@ -11,15 +11,15 @@ @@ -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

16
arch/arc/core/irq_manage.c

@ -17,14 +17,14 @@ @@ -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>
/*

4
arch/arc/core/irq_offload.c

@ -8,8 +8,8 @@ @@ -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;

10
arch/arc/core/mpu/arc_core_mpu.c

@ -4,12 +4,12 @@ @@ -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

16
arch/arc/core/mpu/arc_mpu.c

@ -4,17 +4,17 @@ @@ -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);
/**

2
arch/arc/core/offsets/offsets.c

@ -22,7 +22,7 @@ @@ -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>

8
arch/arc/core/prep_c.c

@ -17,10 +17,10 @@ @@ -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>

10
arch/arc/core/secureshield/arc_sjli.c

@ -4,14 +4,14 @@ @@ -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);
/*

8
arch/arc/core/secureshield/secure_sys_services.c

@ -4,13 +4,13 @@ @@ -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)
/*

6
arch/arc/core/thread.c

@ -11,13 +11,13 @@ @@ -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 */

6
arch/arc/core/timestamp.c

@ -11,9 +11,9 @@ @@ -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

6
arch/arc/core/tls.c

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

2
arch/arc/core/vector_table.c

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

12
arch/arc/include/kernel_arch_data.h

@ -20,16 +20,16 @@ @@ -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" {

10
arch/arc/include/swap_macros.h

@ -9,12 +9,12 @@ @@ -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

2
arch/arc/include/v2/irq.h

@ -15,7 +15,7 @@ @@ -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" {

4
arch/arc/include/vector_table.h

@ -25,8 +25,8 @@ @@ -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)

2
arch/arm/core/aarch32/__aeabi_atexit.c

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

6
arch/arm/core/aarch32/cortex_a_r/fault.c

@ -5,10 +5,10 @@ @@ -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)

4
arch/arm/core/aarch32/cortex_a_r/irq_init.c

@ -9,8 +9,8 @@ @@ -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>
/**
*

6
arch/arm/core/aarch32/cortex_a_r/reboot.c

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

2
arch/arm/core/aarch32/cortex_a_r/stacks.c

@ -4,7 +4,7 @@ @@ -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>

4
arch/arm/core/aarch32/cortex_a_r/tcm.c

@ -3,8 +3,8 @@ @@ -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)
{

2
arch/arm/core/aarch32/cortex_a_r/thread.c

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

6
arch/arm/core/aarch32/cortex_a_r/vector_table.h

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

2
arch/arm/core/aarch32/cortex_m/cmse/arm_core_cmse.c

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

2
arch/arm/core/aarch32/cortex_m/coredump.c

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

2
arch/arm/core/aarch32/cortex_m/debug.c

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

6
arch/arm/core/aarch32/cortex_m/fault.c

@ -12,11 +12,11 @@ @@ -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)

6
arch/arm/core/aarch32/cortex_m/fpu.c

@ -5,9 +5,9 @@ @@ -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.

4
arch/arm/core/aarch32/cortex_m/irq_init.c

@ -10,8 +10,8 @@ @@ -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>
/**
*

10
arch/arm/core/aarch32/cortex_m/scb.c

@ -14,11 +14,11 @@ @@ -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>

2
arch/arm/core/aarch32/cortex_m/thread.c

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

10
arch/arm/core/aarch32/cortex_m/thread_abort.c

@ -16,13 +16,13 @@ @@ -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)
{

6
arch/arm/core/aarch32/cortex_m/timing.c

@ -11,10 +11,10 @@ @@ -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

2
arch/arm/core/aarch32/cortex_m/tz/arm_core_tz.c

@ -4,7 +4,7 @@ @@ -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>

6
arch/arm/core/aarch32/cortex_m/vector_table.h

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

4
arch/arm/core/aarch32/fatal.c

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

22
arch/arm/core/aarch32/irq_manage.c

@ -14,21 +14,21 @@ @@ -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);

4
arch/arm/core/aarch32/irq_offload.c

@ -8,8 +8,8 @@ @@ -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;

20
arch/arm/core/aarch32/mmu/arm_mmu.c

@ -18,19 +18,19 @@ @@ -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);

12
arch/arm/core/aarch32/mpu/arm_core_mpu.c

@ -4,17 +4,17 @@ @@ -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);
/*

10
arch/arm/core/aarch32/mpu/arm_mpu.c

@ -4,16 +4,16 @@ @@ -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)

4
arch/arm/core/aarch32/mpu/arm_mpu_v7_internal.h

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

2
arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h

@ -10,7 +10,7 @@ @@ -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

2
arch/arm/core/aarch32/mpu/cortex_a_r/arm_mpu_internal.h

@ -3,7 +3,7 @@ @@ -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.

2
arch/arm/core/aarch32/mpu/cortex_m/arm_mpu_internal.h

@ -3,7 +3,7 @@ @@ -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.

14
arch/arm/core/aarch32/mpu/nxp_mpu.c

@ -4,17 +4,17 @@ @@ -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);
/*

12
arch/arm/core/aarch32/nmi.c

@ -13,12 +13,12 @@ @@ -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)

4
arch/arm/core/aarch32/prep_c.c

@ -16,9 +16,9 @@ @@ -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>

2
arch/arm/core/aarch32/swap.c

@ -4,7 +4,7 @@ @@ -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;

4
arch/arm/core/aarch32/thread.c

@ -12,9 +12,9 @@ @@ -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 - \

8
arch/arm/core/common/tls.c

@ -4,12 +4,12 @@ @@ -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
/*

2
arch/arm/core/offsets/offsets_aarch32.c

@ -25,7 +25,7 @@ @@ -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>

4
arch/arm/include/aarch32/cortex_a_r/exc.h

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

2
arch/arm/include/aarch32/cortex_m/dwt.h

@ -20,7 +20,7 @@ @@ -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" {

8
arch/arm/include/aarch32/cortex_m/exc.h

@ -14,7 +14,7 @@ @@ -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 @@ @@ -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" {

2
arch/arm/include/aarch32/cortex_m/stack.h

@ -20,7 +20,7 @@ @@ -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" {

12
arch/arm/include/kernel_arch_data.h

@ -20,9 +20,9 @@ @@ -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 @@ @@ -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" {

2
arch/arm64/core/cache.c

@ -13,7 +13,7 @@ @@ -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)

14
arch/arm64/core/cortex_r/arm_mpu.c

@ -5,15 +5,15 @@ @@ -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);

6
arch/arm64/core/fatal.c

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

6
arch/arm64/core/fpu.c

@ -5,10 +5,10 @@ @@ -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);

4
arch/arm64/core/irq_init.c

@ -9,8 +9,8 @@ @@ -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

16
arch/arm64/core/irq_manage.c

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

4
arch/arm64/core/irq_offload.c

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

22
arch/arm64/core/mmu.c

@ -7,20 +7,20 @@ @@ -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"

4
arch/arm64/core/offsets/offsets.c

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

2
arch/arm64/core/prep_c.c

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

22
arch/arm64/core/smp.c

@ -10,19 +10,19 @@ @@ -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

6
arch/arm64/core/thread.c

@ -11,10 +11,10 @@ @@ -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:

8
arch/arm64/core/tls.c

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

20
arch/arm64/core/xen/enlighten.c

@ -4,17 +4,17 @@ @@ -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);

2
arch/arm64/include/exc.h

@ -14,7 +14,7 @@ @@ -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

12
arch/arm64/include/kernel_arch_data.h

@ -20,17 +20,17 @@ @@ -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" {

8
arch/common/isr_tables.c

@ -4,10 +4,10 @@ @@ -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

6
arch/common/sw_isr_common.c

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

6
arch/common/timing.c

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

4
arch/mips/core/cpu_idle.c

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

6
arch/mips/core/fatal.c

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

4
arch/mips/core/irq_manage.c

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

8
arch/mips/core/irq_offload.c

@ -6,11 +6,11 @@ @@ -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;

2
arch/mips/core/prep_c.c

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

2
arch/mips/core/thread.c

@ -6,7 +6,7 @@ @@ -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;

10
arch/mips/include/kernel_arch_data.h

@ -17,14 +17,14 @@ @@ -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" {

4
arch/nios2/core/cache.c

@ -4,8 +4,8 @@ @@ -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>
/**

4
arch/nios2/core/cpu_idle.c

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

8
arch/nios2/core/fatal.c

@ -4,11 +4,11 @@ @@ -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,

14
arch/nios2/core/irq_manage.c

@ -11,15 +11,15 @@ @@ -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)

6
arch/nios2/core/irq_offload.c

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

2
arch/nios2/core/offsets/offsets.c

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

6
arch/nios2/core/prep_c.c

@ -17,9 +17,9 @@ @@ -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>
/**

2
arch/nios2/core/thread.c

@ -4,7 +4,7 @@ @@ -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

6
arch/nios2/core/timing.c

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

12
arch/nios2/include/kernel_arch_data.h

@ -21,16 +21,16 @@ @@ -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

Loading…
Cancel
Save