Lines Matching +full:top +full:- +full:level
1 // SPDX-License-Identifier: GPL-2.0
50 * Only look for values in the legacy ROM for non-EFI system. in find_trampoline_placement()
52 signature = (char *)&boot_params->efi_info.efi_loader_signature; in find_trampoline_placement()
68 for (i = boot_params->e820_entries - 1; i >= 0; i--) { in find_trampoline_placement()
71 entry = &boot_params->e820_table[i]; in find_trampoline_placement()
74 if (bios_start <= entry->addr) in find_trampoline_placement()
77 /* Skip non-RAM entries. */ in find_trampoline_placement()
78 if (entry->type != E820_TYPE_RAM) in find_trampoline_placement()
82 if (bios_start > entry->addr + entry->size) in find_trampoline_placement()
83 new = entry->addr + entry->size; in find_trampoline_placement()
85 /* Keep bios_start page-aligned. */ in find_trampoline_placement()
89 if (new - TRAMPOLINE_32BIT_SIZE < entry->addr) in find_trampoline_placement()
93 if (new - TRAMPOLINE_32BIT_SIZE > bios_start) in find_trampoline_placement()
101 return bios_start - TRAMPOLINE_32BIT_SIZE; in find_trampoline_placement()
116 * - if the kernel supports 5-level paging: CONFIG_X86_5LEVEL=y in configure_5level_paging()
117 * - if user asked to disable 5-level paging: no5lvl in cmdline in configure_5level_paging()
118 * - if the machine supports 5-level paging: in configure_5level_paging()
130 /* Initialize variables for 5-level paging */ in configure_5level_paging()
157 * Avoid the need for a stack in the 32-bit trampoline code, by using in configure_5level_paging()
169 * from 4- to 5-level paging or vice versa. in configure_5level_paging()
174 * For 4- to 5-level paging transition, set up current CR3 as in configure_5level_paging()
175 * the first and the only entry in a new top-level page table. in configure_5level_paging()
182 * For 5- to 4-level paging transition, copy page table pointed in configure_5level_paging()
183 * by first entry in the current top-level page table as our in configure_5level_paging()
184 * new top-level page table. in configure_5level_paging()
196 * Move the top level page table out of trampoline memory. in configure_5level_paging()