2 * linux/include/asm-arm/arch-cl7500/memory.h
4 * Copyright (c) 1996,1997,1998 Russell King.
7 * 20-Oct-1996 RMK Created
8 * 31-Dec-1997 RMK Fixed definitions to reduce warnings
9 * 11-Jan-1998 RMK Uninlined to reduce hits on cache
10 * 08-Feb-1998 RMK Added __virt_to_bus and __bus_to_virt
11 * 21-Mar-1999 RMK Renamed to memory.h
12 * RMK Added TASK_SIZE and PAGE_OFFSET
14 #ifndef __ASM_ARCH_MMU_H
15 #define __ASM_ARCH_MMU_H
20 #define TASK_SIZE (0xbf000000UL)
21 #define TASK_SIZE_26 (0x04000000UL)
24 * This decides where the kernel will search for a free chunk of vm
25 * space during mmap's.
27 #define TASK_UNMAPPED_BASE (0x40000000)
32 #define PAGE_OFFSET (0xc0000000UL)
33 #define PHYS_OFFSET (0x10000000UL)
35 #define __virt_to_phys__is_a_macro
36 #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + PHYS_OFFSET)
37 #define __phys_to_virt__is_a_macro
38 #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - PHYS_OFFSET)
41 * These are exactly the same on the RiscPC as the
42 * physical memory view.
44 #define __virt_to_bus__is_a_macro
45 #define __virt_to_bus(x) __virt_to_phys(x)
46 #define __bus_to_virt__is_a_macro
47 #define __bus_to_virt(x) __phys_to_virt(x)