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