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