arch/powerpc/include/asm/code-patching-asm.h

Source file repositories/reference/linux-study-clean/arch/powerpc/include/asm/code-patching-asm.h

File Facts

System
Linux kernel
Corpus path
arch/powerpc/include/asm/code-patching-asm.h
Extension
.h
Size
397 bytes
Lines
19
Domain
Architecture Layer
Bucket
arch/powerpc
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

#ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H
#define _ASM_POWERPC_CODE_PATCHING_ASM_H

/* Define a "site" that can be patched */
.macro patch_site label name
	.pushsection ".rodata"
	.balign 4
	.global \name
\name:
	.4byte	\label - .
	.popsection
.endm

#endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */

Annotation

Implementation Notes