File tree Expand file tree Collapse file tree
mach-iop13xx/include/mach Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ config ARCH_IOP13XX
311311 select PLAT_IOP
312312 select PCI
313313 select ARCH_SUPPORTS_MSI
314+ select VMSPLIT_1G
314315 help
315316 Support for Intel's IOP13XX (XScale) family of processors.
316317
@@ -739,6 +740,29 @@ config SMP
739740
740741 If you don't know what to do here, say N.
741742
743+ choice
744+ prompt "Memory split"
745+ default VMSPLIT_3G
746+ help
747+ Select the desired split between kernel and user memory.
748+
749+ If you are not absolutely sure what you are doing, leave this
750+ option alone!
751+
752+ config VMSPLIT_3G
753+ bool "3G/1G user/kernel split"
754+ config VMSPLIT_2G
755+ bool "2G/2G user/kernel split"
756+ config VMSPLIT_1G
757+ bool "1G/3G user/kernel split"
758+ endchoice
759+
760+ config PAGE_OFFSET
761+ hex
762+ default 0x40000000 if VMSPLIT_1G
763+ default 0x80000000 if VMSPLIT_2G
764+ default 0xC0000000
765+
742766config NR_CPUS
743767 int "Maximum number of CPUs (2-32)"
744768 range 2 32
Original file line number Diff line number Diff line change 1313#ifndef __ASM_ARM_MEMORY_H
1414#define __ASM_ARM_MEMORY_H
1515
16+ #include <linux/compiler.h>
17+ #include <linux/const.h>
18+ #include <mach/memory.h>
19+ #include <asm/sizes.h>
20+
1621/*
1722 * Allow for constants defined here to be used from assembly code
1823 * by prepending the UL suffix only with actual C code compilation.
1924 */
20- #ifndef __ASSEMBLY__
21- #define UL (x ) (x##UL)
22- #else
23- #define UL (x ) (x)
24- #endif
25-
26- #include <linux/compiler.h>
27- #include <mach/memory.h>
28- #include <asm/sizes.h>
25+ #define UL (x ) _AC(x, UL)
2926
3027#ifdef CONFIG_MMU
3128
32- #ifndef TASK_SIZE
3329/*
30+ * PAGE_OFFSET - the virtual address of the start of the kernel image
3431 * TASK_SIZE - the maximum size of a user space task.
3532 * TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area
3633 */
37- #define TASK_SIZE UL(0xbf000000 )
38- #define TASK_UNMAPPED_BASE UL(0x40000000 )
39- #endif
34+ #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET )
35+ #define TASK_SIZE ( UL(CONFIG_PAGE_OFFSET) - UL(0x01000000) )
36+ #define TASK_UNMAPPED_BASE (UL(CONFIG_PAGE_OFFSET) / 3)
4037
4138/*
4239 * The maximum size of a 26-bit user space task.
4340 */
4441#define TASK_SIZE_26 UL(0x04000000)
4542
46- /*
47- * Page offset: 3GB
48- */
49- #ifndef PAGE_OFFSET
50- #define PAGE_OFFSET UL(0xc0000000)
51- #endif
52-
5343/*
5444 * The module space lives between the addresses given by TASK_SIZE
5545 * and PAGE_OFFSET - it must be within 32MB of the kernel text.
Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ extern unsigned long __bus_to_virt(unsigned long);
4242
4343#endif
4444
45- /* Task size and page offset at 3GB */
46- #define TASK_SIZE UL(0xbf000000)
47- #define PAGE_OFFSET UL(0xc0000000)
48-
4945/*
5046 * Cache flushing area.
5147 */
@@ -56,12 +52,6 @@ extern unsigned long __bus_to_virt(unsigned long);
5652 */
5753#define PHYS_OFFSET UL(0x00000000)
5854
59- /*
60- * This decides where the kernel will search for a free chunk of vm
61- * space during mmap's.
62- */
63- #define TASK_UNMAPPED_BASE ((TASK_SIZE + 0x01000000) / 3)
64-
6555#define FLUSH_BASE_PHYS 0x50000000
6656
6757#endif
Original file line number Diff line number Diff line change 77 * Physical DRAM offset.
88 */
99#define PHYS_OFFSET UL(0x00000000)
10- #define TASK_SIZE UL(0x3f000000)
11- #define PAGE_OFFSET UL(0x40000000)
12- #define TASK_UNMAPPED_BASE ((TASK_SIZE + 0x01000000) / 3)
1310
1411#ifndef __ASSEMBLY__
1512
You can’t perform that action at this time.
0 commit comments