Commit 4259186d authored by David Mosberger's avatar David Mosberger

ia64: Move RGN_MAP_LIMIT from pgtableh to page.h and use that in ustack.h so we

	can escape include-hell.
parent 3b4e81bd
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#define PERCPU_PAGE_SHIFT 16 /* log2() of max. size of per-CPU area */ #define PERCPU_PAGE_SHIFT 16 /* log2() of max. size of per-CPU area */
#define PERCPU_PAGE_SIZE (__IA64_UL_CONST(1) << PERCPU_PAGE_SHIFT) #define PERCPU_PAGE_SIZE (__IA64_UL_CONST(1) << PERCPU_PAGE_SHIFT)
#define RGN_MAP_LIMIT ((1UL << (4*PAGE_SHIFT - 12)) - PAGE_SIZE) /* per region addr limit */
#ifdef CONFIG_HUGETLB_PAGE #ifdef CONFIG_HUGETLB_PAGE
# if defined(CONFIG_HUGETLB_PAGE_SIZE_4GB) # if defined(CONFIG_HUGETLB_PAGE_SIZE_4GB)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* This hopefully works with any (fixed) IA-64 page-size, as defined * This hopefully works with any (fixed) IA-64 page-size, as defined
* in <asm/page.h> (currently 8192). * in <asm/page.h> (currently 8192).
* *
* Copyright (C) 1998-2002 Hewlett-Packard Co * Copyright (C) 1998-2003 Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com> * David Mosberger-Tang <davidm@hpl.hp.com>
*/ */
...@@ -204,7 +204,6 @@ ia64_phys_addr_valid (unsigned long addr) ...@@ -204,7 +204,6 @@ ia64_phys_addr_valid (unsigned long addr)
#define set_pte(ptep, pteval) (*(ptep) = (pteval)) #define set_pte(ptep, pteval) (*(ptep) = (pteval))
#define RGN_SIZE (1UL << 61) #define RGN_SIZE (1UL << 61)
#define RGN_MAP_LIMIT ((1UL << (4*PAGE_SHIFT - 12)) - PAGE_SIZE) /* per region addr limit */
#define RGN_KERNEL 7 #define RGN_KERNEL 7
#define VMALLOC_START 0xa000000200000000 #define VMALLOC_START 0xa000000200000000
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Constants for the user stack size * Constants for the user stack size
*/ */
#include <asm/pgtable.h> #include <asm/page.h>
/* The absolute hard limit for stack size is 1/2 of the mappable space in the region */ /* The absolute hard limit for stack size is 1/2 of the mappable space in the region */
#define MAX_USER_STACK_SIZE (RGN_MAP_LIMIT/2) #define MAX_USER_STACK_SIZE (RGN_MAP_LIMIT/2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment