arch/powerpc/include/asm/vdso_datapage.h

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

File Facts

System
Linux kernel
Corpus path
arch/powerpc/include/asm/vdso_datapage.h
Extension
.h
Size
586 bytes
Lines
30
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 _VDSO_DATAPAGE_H
#define _VDSO_DATAPAGE_H
#ifdef __KERNEL__

/*
 * Copyright (C) 2002 Peter Bergner <bergner@vnet.ibm.com>, IBM
 * Copyright (C) 2005 Benjamin Herrenschmidy <benh@kernel.crashing.org>,
 * 		      IBM Corp.
 */

#ifndef __ASSEMBLER__

#include <vdso/datapage.h>

#else /* __ASSEMBLER__ */

.macro get_datapage ptr symbol
	bcl	20, 31, .+4
999:
	mflr	\ptr
	addis	\ptr, \ptr, (\symbol - 999b)@ha
	addi	\ptr, \ptr, (\symbol - 999b)@l
.endm

#endif /* __ASSEMBLER__ */

#endif /* __KERNEL__ */
#endif /* _SYSTEMCFG_H */

Annotation

Implementation Notes