arch/arc/include/uapi/asm/page.h

Source file repositories/reference/linux-study-clean/arch/arc/include/uapi/asm/page.h

File Facts

System
Linux kernel
Corpus path
arch/arc/include/uapi/asm/page.h
Extension
.h
Size
999 bytes
Lines
34
Domain
Architecture Layer
Bucket
arch/arc
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 _UAPI__ASM_ARC_PAGE_H
#define _UAPI__ASM_ARC_PAGE_H

#include <linux/const.h>

/* PAGE_SHIFT determines the page size */
#ifdef __KERNEL__
#include <vdso/page.h>
#else
/*
 * Default 8k
 * done this way (instead of under CONFIG_ARC_PAGE_SIZE_8K) because adhoc
 * user code (busybox appletlib.h) expects PAGE_SHIFT to be defined w/o
 * using the correct uClibc header and in their build our autoconf.h is
 * not available
 */
#define PAGE_SHIFT 13
#define PAGE_SIZE	_BITUL(PAGE_SHIFT)	/* Default 8K */
#define PAGE_MASK	(~(PAGE_SIZE-1))
#endif

#define PAGE_OFFSET	_AC(0x80000000, UL)	/* Kernel starts at 2G onwrds */

#endif /* _UAPI__ASM_ARC_PAGE_H */

Annotation

Implementation Notes