blob: 223042086f4e9aa29498d3f159aaa2b757fa766a [file] [log] [blame]
Yinghai Luc8dcdb92012-11-16 19:39:10 -08001#ifndef _ASM_X86_INIT_H
2#define _ASM_X86_INIT_H
Pekka Enberg4fcb2082009-03-05 14:55:08 +02003
Yinghai Luaece2782013-01-24 12:19:48 -08004struct x86_mapping_info {
5 void *(*alloc_pgt_page)(void *); /* allocate buf for page table */
6 void *context; /* context for alloc_pgt_page */
7 unsigned long pmd_flag; /* page flag for PMD entry */
8 bool kernel_mapping; /* kernel mapping or ident mapping */
9};
10
11int kernel_ident_mapping_init(struct x86_mapping_info *info, pgd_t *pgd_page,
12 unsigned long addr, unsigned long end);
Pekka Enberg4fcb2082009-03-05 14:55:08 +020013
Yinghai Luc8dcdb92012-11-16 19:39:10 -080014#endif /* _ASM_X86_INIT_H */