Lines Matching +full:swap +full:- +full:bytes
4 * SPDX-License-Identifier: Apache-2.0
31 return efi->acpi_rsdp; in efi_get_acpi_rsdp()
46 * We need to swap in the original EFI page tables for this to work,
51 * plays with the IO-MMU... the posibilities are endless). But
55 * system as-is; we already know it doesn't overlap with the EFI
59 * Similarly we need to swap the stack: EFI firmware was written in an
60 * environment where it would be running on multi-gigabyte systems and
62 * the problem of the red zone -- SysV reserves 128 bytes of
67 * still, best to swap stacks explicitly.)
73 * are also caller-save. Technically X/YMM0-5 are caller-save too,
77 * the caller as spill space for the 4 register-passed arguments (this
78 * ABI is so weird...). We also need two call-preserved scratch
93 void *stack_top = &efi_stack[ARRAY_SIZE(efi_stack) - 4]; in efi_call()
97 * end of the interrupt. Try to prevent swap happening. in efi_call()
110 : "c"(arg1), "d"(arg2), "S"(stack_top), "D"(efi->efi_cr3) in efi_call()
124 struct efi_system_table *efist = efi->efi_systab; in efi_console_putchar()
128 * the printk call re-entries when an interrupt in efi_console_putchar()
150 __asm__ volatile("movq %0, %%cr3" :: "r"(efi->efi_cr3)); in efi_console_putchar()
151 conout = efist->ConOut; in efi_console_putchar()
152 output_string_fn = efist->ConOut->OutputString; in efi_console_putchar()