2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-02-04 08:56:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARC_GLOBAL_DATA_H
|
|
|
|
#define __ASM_ARC_GLOBAL_DATA_H
|
|
|
|
|
2018-03-21 12:58:57 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2016-07-04 08:37:55 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
2014-02-04 08:56:13 +00:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2018-03-21 12:58:57 +00:00
|
|
|
int l1_line_sz;
|
|
|
|
#if defined(CONFIG_ISA_ARCV2)
|
|
|
|
int slc_line_sz;
|
|
|
|
#endif
|
2014-02-04 08:56:13 +00:00
|
|
|
};
|
2016-07-04 08:37:55 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
2014-02-04 08:56:13 +00:00
|
|
|
|
|
|
|
#include <asm-generic/global_data.h>
|
|
|
|
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25")
|
|
|
|
|
|
|
|
#endif /* __ASM_ARC_GLOBAL_DATA_H */
|