diff options
Diffstat (limited to 'arch/x86/include/asm/init.h')
| -rw-r--r-- | arch/x86/include/asm/init.h | 26 | 
1 files changed, 11 insertions, 15 deletions
diff --git a/arch/x86/include/asm/init.h b/arch/x86/include/asm/init.h index 36fb1a6a510..223042086f4 100644 --- a/arch/x86/include/asm/init.h +++ b/arch/x86/include/asm/init.h @@ -1,18 +1,14 @@ -#ifndef _ASM_X86_INIT_32_H -#define _ASM_X86_INIT_32_H +#ifndef _ASM_X86_INIT_H +#define _ASM_X86_INIT_H -#ifdef CONFIG_X86_32 -extern void __init early_ioremap_page_table_range_init(void); -#endif +struct x86_mapping_info { +	void *(*alloc_pgt_page)(void *); /* allocate buf for page table */ +	void *context;			 /* context for alloc_pgt_page */ +	unsigned long pmd_flag;		 /* page flag for PMD entry */ +	bool kernel_mapping;		 /* kernel mapping or ident mapping */ +}; -extern unsigned long __init -kernel_physical_mapping_init(unsigned long start, -			     unsigned long end, -			     unsigned long page_size_mask); +int kernel_ident_mapping_init(struct x86_mapping_info *info, pgd_t *pgd_page, +				unsigned long addr, unsigned long end); - -extern unsigned long __initdata e820_table_start; -extern unsigned long __meminitdata e820_table_end; -extern unsigned long __meminitdata e820_table_top; - -#endif /* _ASM_X86_INIT_32_H */ +#endif /* _ASM_X86_INIT_H */  | 
