Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Yinghai Lu | c8dcdb9 | 2012-11-16 19:39:10 -0800 | [diff] [blame] | 2 | #ifndef _ASM_X86_INIT_H |
| 3 | #define _ASM_X86_INIT_H |
Pekka Enberg | 4fcb208 | 2009-03-05 14:55:08 +0200 | [diff] [blame] | 4 | |
Yinghai Lu | aece278 | 2013-01-24 12:19:48 -0800 | [diff] [blame] | 5 | struct x86_mapping_info { |
| 6 | void *(*alloc_pgt_page)(void *); /* allocate buf for page table */ |
| 7 | void *context; /* context for alloc_pgt_page */ |
Xunlei Pang | 66aad4f | 2017-05-04 09:42:50 +0800 | [diff] [blame] | 8 | unsigned long page_flag; /* page flag for PMD or PUD entry */ |
Rafael J. Wysocki | e4630fd | 2016-08-08 15:31:31 +0200 | [diff] [blame] | 9 | unsigned long offset; /* ident mapping offset */ |
Xunlei Pang | 66aad4f | 2017-05-04 09:42:50 +0800 | [diff] [blame] | 10 | bool direct_gbpages; /* PUD level 1GB page support */ |
Tom Lendacky | bba4ed0 | 2017-07-17 16:10:28 -0500 | [diff] [blame] | 11 | unsigned long kernpg_flag; /* kernel pagetable flag override */ |
Yinghai Lu | aece278 | 2013-01-24 12:19:48 -0800 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | int kernel_ident_mapping_init(struct x86_mapping_info *info, pgd_t *pgd_page, |
Rafael J. Wysocki | e4630fd | 2016-08-08 15:31:31 +0200 | [diff] [blame] | 15 | unsigned long pstart, unsigned long pend); |
Pekka Enberg | 4fcb208 | 2009-03-05 14:55:08 +0200 | [diff] [blame] | 16 | |
Yinghai Lu | c8dcdb9 | 2012-11-16 19:39:10 -0800 | [diff] [blame] | 17 | #endif /* _ASM_X86_INIT_H */ |