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