2019-11-11 00:17:19 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2021-03-26 22:22:59 +08:00
|
|
|
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
|
|
|
#define ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
2019-11-11 00:17:19 +08:00
|
|
|
|
|
|
|
#include <offsets.h>
|
|
|
|
|
2021-04-13 12:42:00 +08:00
|
|
|
#define _thread_offset_to_exception_depth \
|
|
|
|
(___thread_t_arch_OFFSET + ___thread_arch_t_exception_depth_OFFSET)
|
|
|
|
|
2021-05-04 01:58:57 +08:00
|
|
|
#define _thread_offset_to_callee_saved_x19_x20 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x19_x20_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_x21_x22 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x21_x22_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_x23_x24 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x23_x24_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_x25_x26 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x25_x26_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_x27_x28 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x27_x28_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_x29_sp_el0 \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_x29_sp_el0_OFFSET)
|
|
|
|
#define _thread_offset_to_callee_saved_sp_elx \
|
|
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_elx_OFFSET)
|
|
|
|
|
2021-03-26 22:22:59 +08:00
|
|
|
#endif /* ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
|