diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pageattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 9c4294986af7..1280565670e4 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <asm/processor.h> | 16 | #include <asm/processor.h> |
17 | #include <asm/tlbflush.h> | 17 | #include <asm/tlbflush.h> |
18 | #include <asm/sections.h> | 18 | #include <asm/sections.h> |
19 | #include <asm/setup.h> | ||
19 | #include <asm/uaccess.h> | 20 | #include <asm/uaccess.h> |
20 | #include <asm/pgalloc.h> | 21 | #include <asm/pgalloc.h> |
21 | #include <asm/proto.h> | 22 | #include <asm/proto.h> |
@@ -95,7 +96,7 @@ static inline unsigned long highmap_start_pfn(void) | |||
95 | 96 | ||
96 | static inline unsigned long highmap_end_pfn(void) | 97 | static inline unsigned long highmap_end_pfn(void) |
97 | { | 98 | { |
98 | return __pa(roundup((unsigned long)_end, PMD_SIZE)) >> PAGE_SHIFT; | 99 | return __pa(roundup(_brk_end, PMD_SIZE)) >> PAGE_SHIFT; |
99 | } | 100 | } |
100 | 101 | ||
101 | #endif | 102 | #endif |
@@ -711,7 +712,7 @@ static int cpa_process_alias(struct cpa_data *cpa) | |||
711 | * No need to redo, when the primary call touched the high | 712 | * No need to redo, when the primary call touched the high |
712 | * mapping already: | 713 | * mapping already: |
713 | */ | 714 | */ |
714 | if (within(vaddr, (unsigned long) _text, (unsigned long) _end)) | 715 | if (within(vaddr, (unsigned long) _text, _brk_end)) |
715 | return 0; | 716 | return 0; |
716 | 717 | ||
717 | /* | 718 | /* |