2016-11-08 16:36:50 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2016 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 02:01:01 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-08 16:36:50 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Private kernel definitions (ARM)
|
|
|
|
*
|
|
|
|
* This file contains private kernel structures definitions and various
|
2020-04-09 15:37:35 +02:00
|
|
|
* other definitions for the ARM Cortex-A/R/M processor architecture family.
|
2016-11-08 16:36:50 +01:00
|
|
|
*
|
|
|
|
* This file is also included by assembly language files which must #define
|
|
|
|
* _ASMLANGUAGE before including this header file. Note that kernel
|
|
|
|
* assembly source files obtains structure offset values via "absolute symbols"
|
|
|
|
* in the offsets.o module.
|
|
|
|
*/
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
|
|
|
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2022-05-06 10:49:15 +02:00
|
|
|
#include <zephyr/toolchain.h>
|
|
|
|
#include <zephyr/linker/sections.h>
|
|
|
|
#include <zephyr/arch/cpu.h>
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2019-11-10 17:17:19 +01:00
|
|
|
#if defined(CONFIG_CPU_CORTEX_M)
|
2023-07-04 08:21:40 +02:00
|
|
|
#include <cortex_m/stack.h>
|
2023-12-08 15:21:58 +01:00
|
|
|
#include <cortex_m/exception.h>
|
2021-10-30 01:24:17 +02:00
|
|
|
#elif defined(CONFIG_CPU_AARCH32_CORTEX_R) || defined(CONFIG_CPU_AARCH32_CORTEX_A)
|
2023-07-04 08:21:40 +02:00
|
|
|
#include <cortex_a_r/stack.h>
|
2023-12-08 14:59:00 +01:00
|
|
|
#include <cortex_a_r/exception.h>
|
2016-11-08 16:36:50 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
2022-05-06 10:49:15 +02:00
|
|
|
#include <zephyr/kernel.h>
|
2019-08-12 19:52:55 +02:00
|
|
|
#include <zephyr/types.h>
|
2022-05-06 10:49:15 +02:00
|
|
|
#include <zephyr/sys/dlist.h>
|
|
|
|
#include <zephyr/sys/atomic.h>
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2019-08-12 19:52:55 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-06-01 04:26:04 +02:00
|
|
|
typedef struct arch_esf _esf_t;
|
2019-08-12 19:52:55 +02:00
|
|
|
typedef struct __basic_sf _basic_sf_t;
|
2022-04-05 15:11:57 +02:00
|
|
|
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
|
|
|
|
typedef struct __fpu_sf _fpu_sf_t;
|
|
|
|
#endif
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2020-11-05 21:55:28 +01:00
|
|
|
#ifdef CONFIG_ARM_MPU
|
|
|
|
struct z_arm_mpu_partition {
|
|
|
|
uintptr_t start;
|
|
|
|
size_t size;
|
|
|
|
k_mem_partition_attr_t attr;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2016-11-08 16:36:50 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-08-12 19:52:55 +02:00
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_ */
|