blob: 1f5ec1ff1fc779055d10035b5e833a01103ba1f5 [file] [log] [blame]
Macpaul Lin0b9b59a2011-10-11 22:33:15 +00001/*
2 * (C) Copyright 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
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>
8 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Macpaul Lin0b9b59a2011-10-11 22:33:15 +000010 */
11
12/**************************************************************
13 * CAUTION:
14 * - do not implement for NDS32 Arch yet.
15 * - so far no one uses the macros defined in this head file.
16 **************************************************************/
17
18#ifndef __ASM_GBL_DATA_H
19#define __ASM_GBL_DATA_H
Simon Glass3ac47d72012-12-13 20:48:30 +000020
21/* Architecture-specific global data */
22struct arch_global_data {
23};
24
Simon Glassf62b94d2012-12-13 20:49:20 +000025#include <asm-generic/global_data.h>
Macpaul Lin0b9b59a2011-10-11 22:33:15 +000026
27#ifdef CONFIG_GLOBAL_DATA_NOT_REG10
28extern volatile gd_t g_gd;
29#define DECLARE_GLOBAL_DATA_PTR static volatile gd_t *gd = &g_gd
30#else
31#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("$r10")
32#endif
33
34#endif /* __ASM_GBL_DATA_H */