mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
iterable_sections: move to specific header
Until now iterable sections APIs have been part of the toolchain (common) headers. They are not strictly related to a toolchain, they just rely on linker providing support for sections. Most files relied on indirect includes to access the API, now, it is included as needed. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
committed by
Carles Cufí
parent
4975c94845
commit
dacb3dbfeb
@@ -12,6 +12,7 @@
|
||||
#include <zephyr/drivers/interrupt_controller/loapic.h>
|
||||
#include <zephyr/irq.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <x86_mmu.h>
|
||||
|
||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/linker/iterable_sections.h>
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
|
||||
@@ -17,6 +17,7 @@ LOG_MODULE_REGISTER(uart_mux, CONFIG_UART_MUX_LOG_LEVEL);
|
||||
#include <zephyr/sys/ring_buffer.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#include "gsm_mux.h"
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ LOG_MODULE_REGISTER(pcie, LOG_LEVEL_ERR);
|
||||
#include <zephyr/sys/check.h>
|
||||
#include <stdbool.h>
|
||||
#include <zephyr/drivers/pcie/pcie.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#if CONFIG_PCIE_MSI
|
||||
#include <zephyr/drivers/pcie/msi.h>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <ctype.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/drivers/sensor.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#define SENSOR_GET_HELP \
|
||||
"Get sensor data. Channel names are optional. All channels are read " \
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#include "uvb.h"
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
#ifndef ZEPHYR_INCLUDE_UVB
|
||||
#define ZEPHYR_INCLUDE_UVB
|
||||
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
|
||||
#include <zephyr/arch/x86/intel64/thread.h>
|
||||
#include <zephyr/arch/x86/thread_stack.h>
|
||||
#if defined(CONFIG_PCIE) && !defined(_ASMLANGUAGE)
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#endif
|
||||
|
||||
#if CONFIG_ISR_STACK_SIZE != (CONFIG_ISR_SUBSTACK_SIZE * CONFIG_ISR_DEPTH)
|
||||
#error "Check ISR stack configuration (CONFIG_ISR_*)"
|
||||
@@ -113,8 +116,6 @@ struct x86_ssf {
|
||||
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
|
||||
} while (false)
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
#ifdef CONFIG_PCIE
|
||||
#define X86_RESERVE_IRQ(irq_p, name) \
|
||||
static TYPE_SECTION_ITERABLE(uint8_t, name, irq_alloc, name) = irq_p
|
||||
@@ -122,6 +123,8 @@ struct x86_ssf {
|
||||
#define X86_RESERVE_IRQ(irq_p, name)
|
||||
#endif
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
/*
|
||||
* All Intel64 interrupts are dynamically connected.
|
||||
*/
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/gap.h>
|
||||
#include <zephyr/bluetooth/direction.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/bluetooth/uuid.h>
|
||||
#include <zephyr/bluetooth/att.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
/**
|
||||
* @brief Provisioning
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
/**
|
||||
* @brief Proxy
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/sys/device_mmio.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/drivers/display.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -26,6 +26,7 @@ struct emul;
|
||||
#include <zephyr/drivers/espi_emul.h>
|
||||
#include <zephyr/drivers/i2c_emul.h>
|
||||
#include <zephyr/drivers/spi_emul.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
/**
|
||||
* The types of supported buses.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <zephyr/dt-bindings/pcie/pcie.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <zephyr/types.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user