/* * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> * Copyright (C) 2004 Microtronix Datacom Ltd. * * MMU support based on asm/page.h from mips which is: * * Copyright (C) 1994 - 1999, 2000, 03 Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details.
*/
/* * PAGE_OFFSET -- the first address of the first page of memory.
*/ #define PAGE_OFFSET \
(CONFIG_NIOS2_MEM_BASE + CONFIG_NIOS2_KERNEL_REGION_BASE)
#ifndef __ASSEMBLY__
/* * This gives the physical RAM offset.
*/ #define PHYS_OFFSET CONFIG_NIOS2_MEM_BASE
/* * It's normally defined only for FLATMEM config but it's * used in our early mem init code for all memory models. * So always define it.
*/ #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
/* * These are used to make use of C type-checking.
*/ typedefstruct page *pgtable_t; typedefstruct { unsignedlong pte; } pte_t; typedefstruct { unsignedlong pgd; } pgd_t; typedefstruct { unsignedlong pgprot; } pgprot_t;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.