Prepare v2023.10
[platform/kernel/u-boot.git] / arch / arc / include / asm / global_data.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4  */
5
6 #ifndef __ASM_ARC_GLOBAL_DATA_H
7 #define __ASM_ARC_GLOBAL_DATA_H
8
9 #ifndef __ASSEMBLY__
10 /* Architecture-specific global data */
11 struct arch_global_data {
12         int l1_line_sz;
13 #if defined(CONFIG_ISA_ARCV2)
14         int slc_line_sz;
15 #endif
16 };
17 #endif /* __ASSEMBLY__ */
18
19 #include <asm-generic/global_data.h>
20
21 #define DECLARE_GLOBAL_DATA_PTR         register volatile gd_t *gd asm ("r25")
22
23 #endif /* __ASM_ARC_GLOBAL_DATA_H */