Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARC_GLOBAL_DATA_H |
| 7 | #define __ASM_ARC_GLOBAL_DATA_H |
| 8 | |
Eugeniy Paltsev | f3de8d6 | 2018-03-21 15:58:57 +0300 | [diff] [blame] | 9 | #include <config.h> |
| 10 | |
Alexey Brodkin | db58eaa | 2016-07-04 11:37:55 +0300 | [diff] [blame] | 11 | #ifndef __ASSEMBLY__ |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 12 | /* Architecture-specific global data */ |
| 13 | struct arch_global_data { |
Eugeniy Paltsev | f3de8d6 | 2018-03-21 15:58:57 +0300 | [diff] [blame] | 14 | int l1_line_sz; |
| 15 | #if defined(CONFIG_ISA_ARCV2) |
| 16 | int slc_line_sz; |
| 17 | #endif |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 18 | }; |
Alexey Brodkin | db58eaa | 2016-07-04 11:37:55 +0300 | [diff] [blame] | 19 | #endif /* __ASSEMBLY__ */ |
Alexey Brodkin | 544c5f5 | 2014-02-04 12:56:13 +0400 | [diff] [blame] | 20 | |
| 21 | #include <asm-generic/global_data.h> |
| 22 | |
| 23 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25") |
| 24 | |
| 25 | #endif /* __ASM_ARC_GLOBAL_DATA_H */ |