1 #ifndef _SPARC_VADDRS_H
2 #define _SPARC_VADDRS_H
7 * asm/vaddrs.h: Here we define the virtual addresses at
8 * which important things will be mapped.
10 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
11 * Copyright (C) 2000 Anton Blanchard (anton@samba.org)
14 #define SRMMU_MAXMEM 0x0c000000
16 #define SRMMU_NOCACHE_VADDR (KERNBASE + SRMMU_MAXMEM)
18 /* XXX Empiricals - this needs to go away - KMW */
19 #define SRMMU_MIN_NOCACHE_PAGES (550)
20 #define SRMMU_MAX_NOCACHE_PAGES (1280)
22 /* The following constant is used in mm/srmmu.c::srmmu_nocache_calcsize()
23 * to determine the amount of memory that will be reserved as nocache:
25 * 256 pages will be taken as nocache per each
26 * SRMMU_NOCACHE_ALCRATIO MB of system memory.
28 * limits enforced: nocache minimum = 256 pages
29 * nocache maximum = 1280 pages
31 #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */
33 #define SUN4M_IOBASE_VADDR 0xfd000000 /* Base for mapping pages */
34 #define IOBASE_VADDR 0xfe000000
35 #define IOBASE_END 0xfe600000
37 #define KADB_DEBUGGER_BEGVM 0xffc00000 /* Where kern debugger is in virt-mem */
38 #define KADB_DEBUGGER_ENDVM 0xffd00000
39 #define DEBUG_FIRSTVADDR KADB_DEBUGGER_BEGVM
40 #define DEBUG_LASTVADDR KADB_DEBUGGER_ENDVM
42 #define LINUX_OPPROM_BEGVM 0xffd00000
43 #define LINUX_OPPROM_ENDVM 0xfff00000
45 #define DVMA_VADDR 0xfff00000 /* Base area of the DVMA on suns */
46 #define DVMA_END 0xfffc0000
48 #endif /* !(_SPARC_VADDRS_H) */