arch/powerpc/lib/feature-fixups-test.S

Source file repositories/reference/linux-study-clean/arch/powerpc/lib/feature-fixups-test.S

File Facts

System
Linux kernel
Corpus path
arch/powerpc/lib/feature-fixups-test.S
Extension
.S
Size
20729 bytes
Lines
863
Domain
Architecture Layer
Bucket
arch/powerpc
Inferred role
Architecture Layer: arch/powerpc
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 <asm/feature-fixups.h>
#include <asm/ppc_asm.h>
#include <asm/synch.h>
#include <asm/asm-compat.h>
#include <asm/ppc-opcode.h>

	.text

#define globl(x)		\
	.globl x;	\
x:

globl(ftr_fixup_test1)
	or	1,1,1
	or	2,2,2	/* fixup will nop out this instruction */
	or	3,3,3

globl(end_ftr_fixup_test1)

globl(ftr_fixup_test1_orig)
	or	1,1,1
	or	2,2,2
	or	3,3,3

globl(ftr_fixup_test1_expected)
	or	1,1,1
	nop
	or	3,3,3

globl(ftr_fixup_test2)
	or	1,1,1
	or	2,2,2	/* fixup will replace this with ftr_fixup_test2_alt */
	or	3,3,3

globl(end_ftr_fixup_test2)

globl(ftr_fixup_test2_orig)
	or	1,1,1
	or	2,2,2
	or	3,3,3

globl(ftr_fixup_test2_alt)
	or	31,31,31

globl(ftr_fixup_test2_expected)
	or	1,1,1
	or	31,31,31
	or	3,3,3

globl(ftr_fixup_test3)
	or	1,1,1
	or	2,2,2	/* fixup will fail to replace this */
	or	3,3,3

globl(end_ftr_fixup_test3)

globl(ftr_fixup_test3_orig)
	or	1,1,1
	or	2,2,2
	or	3,3,3

globl(ftr_fixup_test3_alt)
	or	31,31,31
	or	31,31,31

globl(ftr_fixup_test4)
	or	1,1,1
	or	2,2,2
	or	2,2,2
	or	2,2,2

Annotation

Implementation Notes