arch/x86/platform/efi/efi_stub_64.S

Source file repositories/reference/linux-study-clean/arch/x86/platform/efi/efi_stub_64.S

File Facts

System
Linux kernel
Corpus path
arch/x86/platform/efi/efi_stub_64.S
Extension
.S
Size
624 bytes
Lines
32
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: arch/x86
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#include <linux/linkage.h>
#include <asm/nospec-branch.h>

SYM_FUNC_START(__efi_call)
	/*
	 * The EFI code doesn't have any CFI, annotate away the CFI violation.
	 */
	ANNOTATE_NOCFI_SYM
	pushq %rbp
	movq %rsp, %rbp
	and $~0xf, %rsp
	mov 16(%rbp), %rax
	subq $48, %rsp
	mov %r9, 32(%rsp)
	mov %rax, 40(%rsp)
	mov %r8, %r9
	mov %rcx, %r8
	mov %rsi, %rcx
	CALL_NOSPEC rdi
	leave
	RET
SYM_FUNC_END(__efi_call)

Annotation

Implementation Notes