diff options
Diffstat (limited to 'arch/ia64/mm/init.c')
-rw-r--r-- | arch/ia64/mm/init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index f225dd72968b..c8da621aab17 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -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 |