blob: 43e13430959d60d648c481329072ed48c631c5d5 [file] [log] [blame]
Alexey Brodkin544c5f52014-02-04 12:56:13 +04001/*
2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __ASM_ARC_GLOBAL_DATA_H
8#define __ASM_ARC_GLOBAL_DATA_H
9
Eugeniy Paltsevf3de8d62018-03-21 15:58:57 +030010#include <config.h>
11
Alexey Brodkindb58eaa2016-07-04 11:37:55 +030012#ifndef __ASSEMBLY__
Alexey Brodkin544c5f52014-02-04 12:56:13 +040013/* Architecture-specific global data */
14struct arch_global_data {
Eugeniy Paltsevf3de8d62018-03-21 15:58:57 +030015 int l1_line_sz;
16#if defined(CONFIG_ISA_ARCV2)
17 int slc_line_sz;
18#endif
Alexey Brodkin544c5f52014-02-04 12:56:13 +040019};
Alexey Brodkindb58eaa2016-07-04 11:37:55 +030020#endif /* __ASSEMBLY__ */
Alexey Brodkin544c5f52014-02-04 12:56:13 +040021
22#include <asm-generic/global_data.h>
23
24#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25")
25
26#endif /* __ASM_ARC_GLOBAL_DATA_H */