2004-10-10 21:27:30 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2004, Psyent Corporation <www.psyent.com>
|
|
|
|
* Scott McNutt <smcnutt@psyent.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2004-10-10 21:27:30 +00:00
|
|
|
*/
|
|
|
|
#ifndef __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
#define __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
|
2012-12-13 20:48:30 +00:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
2015-10-21 13:34:57 +00:00
|
|
|
u32 dcache_line_size;
|
|
|
|
u32 icache_line_size;
|
|
|
|
u32 dcache_size;
|
|
|
|
u32 icache_size;
|
|
|
|
u32 reset_addr;
|
|
|
|
u32 exception_addr;
|
|
|
|
int has_initda;
|
|
|
|
int has_mmu;
|
|
|
|
u32 io_region_base;
|
2012-12-13 20:48:30 +00:00
|
|
|
};
|
|
|
|
|
2012-12-13 20:49:21 +00:00
|
|
|
#include <asm-generic/global_data.h>
|
2004-10-10 21:27:30 +00:00
|
|
|
|
2010-05-21 03:08:03 +00:00
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
2004-10-10 21:27:30 +00:00
|
|
|
|
|
|
|
#endif /* __ASM_NIOS2_GLOBALDATA_H_ */
|