arch/x86/include/asm/entry-common.h

Source file repositories/reference/linux-study-clean/arch/x86/include/asm/entry-common.h

File Facts

System
Linux kernel
Corpus path
arch/x86/include/asm/entry-common.h
Extension
.h
Size
2965 bytes
Lines
103
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

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

this_cpu_read(x86_ibpb_exit_to_user)) {
		indirect_branch_prediction_barrier();
		this_cpu_write(x86_ibpb_exit_to_user, false);
	}
}
#define arch_exit_to_user_mode_prepare arch_exit_to_user_mode_prepare

static __always_inline void arch_exit_to_user_mode(void)
{
	amd_clear_divider();
}
#define arch_exit_to_user_mode arch_exit_to_user_mode

extern void x86_entry_from_kvm(unsigned int entry_type, unsigned int vector);

#endif

Annotation

Implementation Notes