2016-11-08 23:36:50 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2016 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-08 23:36:50 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Private kernel definitions (ARM)
|
|
|
|
*
|
|
|
|
* This file contains private kernel structures definitions and various
|
2019-02-07 17:05:30 +08:00
|
|
|
* other definitions for the ARM Cortex-M processor architecture family.
|
2016-11-08 23:36:50 +08: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-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
|
|
|
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
|
2016-11-08 23:36:50 +08:00
|
|
|
|
|
|
|
#include <toolchain.h>
|
2017-06-17 23:30:47 +08:00
|
|
|
#include <linker/sections.h>
|
2016-11-08 23:36:50 +08:00
|
|
|
#include <arch/cpu.h>
|
|
|
|
|
|
|
|
/* stacks */
|
|
|
|
|
|
|
|
#define STACK_ROUND_UP(x) ROUND_UP(x, STACK_ALIGN_SIZE)
|
|
|
|
#define STACK_ROUND_DOWN(x) ROUND_DOWN(x, STACK_ALIGN_SIZE)
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_CORTEX_M
|
2019-11-10 01:49:36 +08:00
|
|
|
#include <aarch32/cortex_m/stack.h>
|
|
|
|
#include <aarch32/cortex_m/exc.h>
|
2018-06-25 21:15:14 +08:00
|
|
|
#elif defined(CONFIG_CPU_CORTEX_R)
|
2019-11-10 01:49:36 +08:00
|
|
|
#include <aarch32/cortex_r/stack.h>
|
|
|
|
#include <aarch32/cortex_r/exc.h>
|
2016-11-08 23:36:50 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
2019-08-13 01:52:55 +08:00
|
|
|
#include <kernel.h>
|
|
|
|
#include <zephyr/types.h>
|
|
|
|
#include <sys/dlist.h>
|
|
|
|
#include <sys/atomic.h>
|
2016-11-08 23:36:50 +08:00
|
|
|
|
2019-08-13 01:52:55 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct __esf _esf_t;
|
|
|
|
typedef struct __basic_sf _basic_sf_t;
|
2016-11-08 23:36:50 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-08-13 01:52:55 +08:00
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_ */
|