2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2004-04-18 21:13:41 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2004 Atmark Techno, Inc.
|
|
|
|
*
|
|
|
|
* Yasushi SHOJI <yashi@atmark-techno.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_GBL_DATA_H
|
|
|
|
#define __ASM_GBL_DATA_H
|
2012-12-13 20:48:30 +00:00
|
|
|
|
2022-05-31 18:14:31 +00:00
|
|
|
#include <asm/cpuinfo.h>
|
|
|
|
|
2012-12-13 20:48:30 +00:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2022-05-31 18:14:31 +00:00
|
|
|
struct microblaze_cpuinfo cpuinfo;
|
2012-12-13 20:48:30 +00:00
|
|
|
};
|
|
|
|
|
2012-12-13 20:49:18 +00:00
|
|
|
#include <asm-generic/global_data.h>
|
2004-04-18 21:13:41 +00:00
|
|
|
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r31")
|
|
|
|
|
2022-05-31 18:14:31 +00:00
|
|
|
#define gd_cpuinfo() ((struct microblaze_cpuinfo *)&gd->arch.cpuinfo)
|
|
|
|
|
2004-04-18 21:13:41 +00:00
|
|
|
#endif /* __ASM_GBL_DATA_H */
|