diff options
Diffstat (limited to 'arch/ia64/mm/init.c')
-rw-r--r-- | arch/ia64/mm/init.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index f225dd72968b..4f36987eea72 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -155,7 +155,7 @@ ia64_set_rbs_bot (void) | |||
155 | 155 | ||
156 | if (stack_size > MAX_USER_STACK_SIZE) | 156 | if (stack_size > MAX_USER_STACK_SIZE) |
157 | stack_size = MAX_USER_STACK_SIZE; | 157 | stack_size = MAX_USER_STACK_SIZE; |
158 | current->thread.rbs_bot = STACK_TOP - stack_size; | 158 | current->thread.rbs_bot = PAGE_ALIGN(current->mm->start_stack - stack_size); |
159 | } | 159 | } |
160 | 160 | ||
161 | /* | 161 | /* |
@@ -648,6 +648,22 @@ count_reserved_pages (u64 start, u64 end, void *arg) | |||
648 | return 0; | 648 | return 0; |
649 | } | 649 | } |
650 | 650 | ||
651 | int | ||
652 | find_max_min_low_pfn (unsigned long start, unsigned long end, void *arg) | ||
653 | { | ||
654 | unsigned long pfn_start, pfn_end; | ||
655 | #ifdef CONFIG_FLATMEM | ||
656 | pfn_start = (PAGE_ALIGN(__pa(start))) >> PAGE_SHIFT; | ||
657 | pfn_end = (PAGE_ALIGN(__pa(end - 1))) >> PAGE_SHIFT; | ||
658 | #else | ||
659 | pfn_start = GRANULEROUNDDOWN(__pa(start)) >> PAGE_SHIFT; | ||
660 | pfn_end = GRANULEROUNDUP(__pa(end - 1)) >> PAGE_SHIFT; | ||
661 | #endif | ||
662 | min_low_pfn = min(min_low_pfn, pfn_start); | ||
663 | max_low_pfn = max(max_low_pfn, pfn_end); | ||
664 | return 0; | ||
665 | } | ||
666 | |||
651 | /* | 667 | /* |
652 | * Boot command-line option "nolwsys" can be used to disable the use of any light-weight | 668 | * Boot command-line option "nolwsys" can be used to disable the use of any light-weight |
653 | * system call handler. When this option is in effect, all fsyscalls will end up bubbling | 669 | * system call handler. When this option is in effect, all fsyscalls will end up bubbling |