1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Copyright (C) 2011 Andes Technology Corporation
7 * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
8 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
11 /**************************************************************
13 * - do not implement for NDS32 Arch yet.
14 * - so far no one uses the macros defined in this head file.
15 **************************************************************/
17 #ifndef __ASM_GBL_DATA_H
18 #define __ASM_GBL_DATA_H
20 /* Architecture-specific global data */
21 struct arch_global_data {
24 #include <asm-generic/global_data.h>
26 #ifdef CONFIG_GLOBAL_DATA_NOT_REG10
27 extern volatile gd_t g_gd;
28 #define DECLARE_GLOBAL_DATA_PTR static volatile gd_t *gd = &g_gd
30 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("$r10")
33 #endif /* __ASM_GBL_DATA_H */