mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
x86: account overlapped mappings in max_pfn_mapped
When end_pfn is not aligned to 2MB (or 1GB) then the kernel might map more memory than end_pfn. Account this in max_pfn_mapped. Signed-off-by: Andi Kleen <ak@suse.de> Cc: andreas.herrmann3@amd.com Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
67794292c8
commit
cc61503219
4 changed files with 27 additions and 14 deletions
|
|
@ -80,6 +80,9 @@ typedef struct { pteval_t pte; } pte_t;
|
|||
|
||||
#define vmemmap ((struct page *)VMEMMAP_START)
|
||||
|
||||
extern unsigned long init_memory_mapping(unsigned long start,
|
||||
unsigned long end);
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
#ifdef CONFIG_FLATMEM
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
extern void early_idt_handler(void);
|
||||
|
||||
extern void init_memory_mapping(unsigned long start, unsigned long end);
|
||||
|
||||
extern void system_call(void);
|
||||
extern void syscall_init(void);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue