1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2004 Atmark Techno, Inc.
8 #ifndef __ASM_GBL_DATA_H
9 #define __ASM_GBL_DATA_H
11 #include <asm/cpuinfo.h>
12 #include <asm/u-boot.h>
14 /* Architecture-specific global data */
15 struct arch_global_data {
16 struct microblaze_cpuinfo cpuinfo;
19 #include <asm-generic/global_data.h>
21 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
23 #define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo)
25 #endif /* __ASM_GBL_DATA_H */