1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * OpenRISC Linux 4 * 5 * Linux architectural port borrowing liberall 6 * others. All original copyrights apply as p 7 * declaration. 8 * 9 * OpenRISC implementation: 10 * Copyright (C) 2003 Matjaz Breskvar <phoenix 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@s 12 * et al. 13 */ 14 15 #ifndef __ASM_OPENRISC_FIXMAP_H 16 #define __ASM_OPENRISC_FIXMAP_H 17 18 /* Why exactly do we need 2 empty pages betwee 19 * addresses and the top of virtual memory? S 20 * memory space but not sure what right now... 21 * a comment here. 22 */ 23 #define FIXADDR_TOP ((unsigned long) (-2*P 24 25 #include <linux/kernel.h> 26 #include <linux/bug.h> 27 #include <asm/page.h> 28 29 /* 30 * On OpenRISC we use these special fixed_addr 31 * early in the boot process before memory ini 32 * This is used, in particular, by the early s 33 * 34 * It's not really 'fixmap', per se, but fits 35 * paradigm. 36 */ 37 enum fixed_addresses { 38 /* 39 * FIX_IOREMAP entries are useful for 40 * space before ioremap() is useable, 41 * before kmalloc() is working. 42 */ 43 #define FIX_N_IOREMAPS 32 44 FIX_IOREMAP_BEGIN, 45 FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + 46 __end_of_fixed_addresses 47 }; 48 49 #define FIXADDR_SIZE (__end_of_fixe 50 /* FIXADDR_BOTTOM might be a better name here. 51 #define FIXADDR_START (FIXADDR_TOP - 52 53 #include <asm-generic/fixmap.h> 54 55 #endif 56
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.