Namespaced the generated headers with `zephyr` to prevent potential conflict with other headers. Introduce a temporary Kconfig `LEGACY_GENERATED_INCLUDE_PATH` that is enabled by default. This allows the developers to continue the use of the old include paths for the time being until it is deprecated and eventually removed. The Kconfig will generate a build-time warning message, similar to the `CONFIG_TIMER_RANDOM_GENERATOR`. Updated the includes path of in-tree sources accordingly. Most of the changes here are scripted, check the PR for more info. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2019-2020 Cobham Gaisler AB
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
|
#define ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
|
|
|
#include <zephyr/offsets.h>
|
|
|
|
#define _thread_offset_to_y \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_y_OFFSET)
|
|
|
|
#define _thread_offset_to_l0_and_l1 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l0_and_l1_OFFSET)
|
|
|
|
#define _thread_offset_to_l2 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l2_OFFSET)
|
|
|
|
#define _thread_offset_to_l4 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l4_OFFSET)
|
|
|
|
#define _thread_offset_to_l6 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l6_OFFSET)
|
|
|
|
#define _thread_offset_to_i0 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i0_OFFSET)
|
|
|
|
#define _thread_offset_to_i2 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i2_OFFSET)
|
|
|
|
#define _thread_offset_to_i4 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i4_OFFSET)
|
|
|
|
#define _thread_offset_to_i6 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i6_OFFSET)
|
|
|
|
#define _thread_offset_to_o6 \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_o6_OFFSET)
|
|
|
|
#define _thread_offset_to_psr \
|
|
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_psr_OFFSET)
|
|
|
|
#endif /* ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
|