mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
kernel: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all kernel 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:
committed by
Carles Cufí
parent
6388778fb1
commit
cffefc818d
@@ -18,11 +18,11 @@
|
||||
* (originally from x86's atomic.c)
|
||||
*/
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <spinlock.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/arch/cpu.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
/* Single global spinlock for atomic operations. This is fallback
|
||||
* code, not performance sensitive. At least by not using irq_lock()
|
||||
@@ -37,7 +37,7 @@ static struct k_spinlock lock;
|
||||
* forbidden.
|
||||
*/
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#include <syscall_handler.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
#define ATOMIC_SYSCALL_HANDLER_TARGET(name) \
|
||||
static inline atomic_val_t z_vrfy_##name(atomic_t *target) \
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <sys/util.h>
|
||||
#include <init.h>
|
||||
#include <device.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <version.h>
|
||||
|
||||
/* boot banner items */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <cache.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <zephyr/cache.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_sys_cache_data_all(int op)
|
||||
{
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
* function __stack_chk_fail and global variable __stack_chk_guard.
|
||||
*/
|
||||
|
||||
#include <toolchain.h> /* compiler specific configurations */
|
||||
#include <zephyr/toolchain.h> /* compiler specific configurations */
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <toolchain.h>
|
||||
#include <linker/sections.h>
|
||||
#include <kernel.h>
|
||||
#include <app_memory/app_memdomain.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/app_memory/app_memdomain.h>
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <toolchain.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
static struct k_spinlock lock;
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <device.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
extern const struct init_entry __init_start[];
|
||||
extern const struct init_entry __init_PRE_KERNEL_1_start[];
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
* context switching.
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
|
||||
/*
|
||||
* Define _k_neg_eagain for use in assembly files as errno.h is
|
||||
|
||||
@@ -21,17 +21,17 @@
|
||||
* @brief Kernel event object
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <wait_q.h>
|
||||
#include <sys/dlist.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <ksched.h>
|
||||
#include <init.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <tracing/tracing.h>
|
||||
#include <sys/check.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
|
||||
#define K_EVENT_WAIT_ANY 0x00 /* Wait for any events */
|
||||
#define K_EVENT_WAIT_ALL 0x01 /* Wait for all events */
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
#include <kernel_internal.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <logging/log_ctrl.h>
|
||||
#include <logging/log.h>
|
||||
#include <fatal.h>
|
||||
#include <debug/coredump.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/sys/__assert.h>
|
||||
#include <zephyr/arch/cpu.h>
|
||||
#include <zephyr/logging/log_ctrl.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/fatal.h>
|
||||
#include <zephyr/debug/coredump.h>
|
||||
|
||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <spinlock.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <kswap.h>
|
||||
#include <syscall_handler.h>
|
||||
#include <init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <ksched.h>
|
||||
|
||||
static struct z_futex_data *k_futex_find_data(struct k_futex *futex)
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <toolchain.h>
|
||||
#include <linker/sections.h>
|
||||
#include <drivers/timer/system_timer.h>
|
||||
#include <wait_q.h>
|
||||
#include <pm/pm.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/drivers/timer/system_timer.h>
|
||||
#include <zephyr/wait_q.h>
|
||||
#include <zephyr/pm/pm.h>
|
||||
#include <stdbool.h>
|
||||
#include <logging/log.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <ksched.h>
|
||||
#include <kswap.h>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
* /@ include struct definitions for which offsets symbols are to be
|
||||
* generated @/
|
||||
*
|
||||
* #include <kernel_structs.h>
|
||||
* #include <zephyr/kernel_structs.h>
|
||||
* GEN_ABS_SYM_BEGIN (_OffsetAbsSyms) /@ the name parameter is arbitrary @/
|
||||
* /@ _kernel_t structure member offsets @/
|
||||
*
|
||||
@@ -76,7 +76,7 @@
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/* definition of the GEN_OFFSET_SYM() macros is toolchain independent */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_
|
||||
|
||||
#include <kernel.h>
|
||||
#include <sys/arch_interface.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/arch_interface.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_
|
||||
|
||||
#include <kernel.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <kernel_arch_interface.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <device.h>
|
||||
#include <zephyr/device.h>
|
||||
|
||||
#include <pm/device.h>
|
||||
#include <zephyr/pm/device.h>
|
||||
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
|
||||
/**
|
||||
* @brief Return the total size of TLS data/bss areas
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#ifndef ZEPHYR_KERNEL_INCLUDE_KSCHED_H_
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KSCHED_H_
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <timeout_q.h>
|
||||
#include <tracing/tracing.h>
|
||||
#include <zephyr/timeout_q.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
BUILD_ASSERT(K_LOWEST_APPLICATION_THREAD_PRIO
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#define ZEPHYR_KERNEL_INCLUDE_KSWAP_H_
|
||||
|
||||
#include <ksched.h>
|
||||
#include <spinlock.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <kernel_arch_func.h>
|
||||
|
||||
#ifdef CONFIG_STACK_SENTINEL
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
#ifdef CONFIG_MMU
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/slist.h>
|
||||
#include <sys/__assert.h>
|
||||
#include <sys/util.h>
|
||||
#include <sys/mem_manage.h>
|
||||
#include <linker/linker-defs.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/sys/__assert.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/mem_manage.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
|
||||
/*
|
||||
* At present, page frame management is only done for main system RAM,
|
||||
|
||||
@@ -11,30 +11,30 @@
|
||||
* This module contains routines that are used to initialize the kernel.
|
||||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <zephyr/zephyr.h>
|
||||
#include <offsets_short.h>
|
||||
#include <kernel.h>
|
||||
#include <sys/printk.h>
|
||||
#include <debug/stack.h>
|
||||
#include <random/rand32.h>
|
||||
#include <linker/sections.h>
|
||||
#include <toolchain.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <linker/linker-defs.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include <zephyr/debug/stack.h>
|
||||
#include <zephyr/random/rand32.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
#include <ksched.h>
|
||||
#include <string.h>
|
||||
#include <sys/dlist.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <drivers/entropy.h>
|
||||
#include <logging/log_ctrl.h>
|
||||
#include <tracing/tracing.h>
|
||||
#include <zephyr/drivers/entropy.h>
|
||||
#include <zephyr/logging/log_ctrl.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <stdbool.h>
|
||||
#include <debug/gcov.h>
|
||||
#include <zephyr/debug/gcov.h>
|
||||
#include <kswap.h>
|
||||
#include <timing/timing.h>
|
||||
#include <logging/log.h>
|
||||
#include <zephyr/timing/timing.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
LOG_MODULE_REGISTER(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||
|
||||
/* the only struct z_kernel instance */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user