Skip to content

Commit 6b80fb7

Browse files
xxkentabrodkin
authored andcommitted
ARCv3: increase mmap address space for HS6x
This fix was made to let 429.mcf from SPECint to allocate 1677Mb of memory.
1 parent 9216f88 commit 6b80fb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/arc/include/asm/processor.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ extern unsigned int get_wchan(struct task_struct *p);
7777
* Default System Memory Map on ARC (assuming 4k pages)
7878
*
7979
* ---------------------------- (Userspace, Translated) -------------------------
80-
* 0x0000_0000 0x5FFF_FFFF (user vaddr: TASK_SIZE)
80+
* 0x0000_0000 0xFFFE_FFFF (user vaddr: TASK_SIZE)
8181
*
8282
* PAGE_OFFSET ---------------- (Kernelspace, Translated) -----------------------
8383
* 0xffff_0000_0000_0000 0xffff_0000_3fff_ffff (kernel: PUD_SIZE)
@@ -87,7 +87,7 @@ extern unsigned int get_wchan(struct task_struct *p);
8787
CONFIG_ARC_KVADDR_SIZE << 20)
8888
* -----------------------------------------------------------------------------
8989
*/
90-
#define TASK_SIZE 0x60000000
90+
#define TASK_SIZE 0xFFFF0000
9191
#define USER_KERNEL_GUTTER 0
9292

9393
#define VMALLOC_START (PAGE_OFFSET + 0x100000000000UL)
@@ -152,6 +152,7 @@ extern unsigned int get_wchan(struct task_struct *p);
152152
/* This decides where the kernel will search for a free chunk of vm
153153
* space during mmap's.
154154
*/
155-
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
155+
#define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
156+
156157

157158
#endif /* __ASM_ARC_PROCESSOR_H */

0 commit comments

Comments
 (0)