1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * (C) Copyright 2004 Atmark Techno, Inc. 4 * 5 * Yasushi SHOJI <yashi@atmark-techno.com> 6 */ 7 8#ifndef __ASM_GBL_DATA_H 9#define __ASM_GBL_DATA_H 10 11#include <asm/cpuinfo.h> 12 13/* Architecture-specific global data */ 14struct arch_global_data { 15 struct microblaze_cpuinfo cpuinfo; 16}; 17 18#include <asm-generic/global_data.h> 19 20#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31") 21 22#define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo) 23 24#endif /* __ASM_GBL_DATA_H */ 25