]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
c8dcdb9c YL |
2 | #ifndef _ASM_X86_INIT_H |
3 | #define _ASM_X86_INIT_H | |
4fcb2083 | 4 | |
aece2785 YL |
5 | struct x86_mapping_info { |
6 | void *(*alloc_pgt_page)(void *); /* allocate buf for page table */ | |
7 | void *context; /* context for alloc_pgt_page */ | |
66aad4fd | 8 | unsigned long page_flag; /* page flag for PMD or PUD entry */ |
e4630fdd | 9 | unsigned long offset; /* ident mapping offset */ |
66aad4fd | 10 | bool direct_gbpages; /* PUD level 1GB page support */ |
bba4ed01 | 11 | unsigned long kernpg_flag; /* kernel pagetable flag override */ |
aece2785 YL |
12 | }; |
13 | ||
14 | int kernel_ident_mapping_init(struct x86_mapping_info *info, pgd_t *pgd_page, | |
e4630fdd | 15 | unsigned long pstart, unsigned long pend); |
4fcb2083 | 16 | |
c8dcdb9c | 17 | #endif /* _ASM_X86_INIT_H */ |