100f892fcSMacpaul Lin /* 200f892fcSMacpaul Lin * (C) Copyright 2002 300f892fcSMacpaul Lin * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 400f892fcSMacpaul Lin * 500f892fcSMacpaul Lin * Copyright (C) 2011 Andes Technology Corporation 600f892fcSMacpaul Lin * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com> 700f892fcSMacpaul Lin * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com> 800f892fcSMacpaul Lin * 900f892fcSMacpaul Lin * See file CREDITS for list of people who contributed to this 1000f892fcSMacpaul Lin * project. 1100f892fcSMacpaul Lin * 1200f892fcSMacpaul Lin * This program is free software; you can redistribute it and/or 1300f892fcSMacpaul Lin * modify it under the terms of the GNU General Public License as 1400f892fcSMacpaul Lin * published by the Free Software Foundation; either version 2 of 1500f892fcSMacpaul Lin * the License, or (at your option) any later version. 1600f892fcSMacpaul Lin * 1700f892fcSMacpaul Lin * This program is distributed in the hope that it will be useful, 1800f892fcSMacpaul Lin * but WITHOUT ANY WARRANTY; without even the implied warranty of 1900f892fcSMacpaul Lin * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2000f892fcSMacpaul Lin * GNU General Public License for more details. 2100f892fcSMacpaul Lin * 2200f892fcSMacpaul Lin * You should have received a copy of the GNU General Public License 2300f892fcSMacpaul Lin * along with this program; if not, write to the Free Software 2400f892fcSMacpaul Lin * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2500f892fcSMacpaul Lin * MA 02111-1307 USA 2600f892fcSMacpaul Lin */ 2700f892fcSMacpaul Lin 2800f892fcSMacpaul Lin /************************************************************** 2900f892fcSMacpaul Lin * CAUTION: 3000f892fcSMacpaul Lin * - do not implement for NDS32 Arch yet. 3100f892fcSMacpaul Lin * - so far no one uses the macros defined in this head file. 3200f892fcSMacpaul Lin **************************************************************/ 3300f892fcSMacpaul Lin 3400f892fcSMacpaul Lin #ifndef __ASM_GBL_DATA_H 3500f892fcSMacpaul Lin #define __ASM_GBL_DATA_H 365cb48582SSimon Glass 375cb48582SSimon Glass /* Architecture-specific global data */ 385cb48582SSimon Glass struct arch_global_data { 395cb48582SSimon Glass }; 405cb48582SSimon Glass 41*ee22c1a2SSimon Glass #include <asm-generic/global_data.h> 4200f892fcSMacpaul Lin 4300f892fcSMacpaul Lin #ifdef CONFIG_GLOBAL_DATA_NOT_REG10 4400f892fcSMacpaul Lin extern volatile gd_t g_gd; 4500f892fcSMacpaul Lin #define DECLARE_GLOBAL_DATA_PTR static volatile gd_t *gd = &g_gd 4600f892fcSMacpaul Lin #else 4700f892fcSMacpaul Lin #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("$r10") 4800f892fcSMacpaul Lin #endif 4900f892fcSMacpaul Lin 5000f892fcSMacpaul Lin #endif /* __ASM_GBL_DATA_H */ 51