arch/mips/include/asm/mach-loongson64/mmzone.h

Source file repositories/reference/linux-study-clean/arch/mips/include/asm/mach-loongson64/mmzone.h

File Facts

System
Linux kernel
Corpus path
arch/mips/include/asm/mach-loongson64/mmzone.h
Extension
.h
Size
637 bytes
Lines
20
Domain
Architecture Layer
Bucket
arch/mips
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_MACH_LOONGSON64_MMZONE_H
#define _ASM_MACH_LOONGSON64_MMZONE_H

#define NODE_ADDRSPACE_SHIFT 44

#define pa_to_nid(addr)  (((addr) & 0xf00000000000) >> NODE_ADDRSPACE_SHIFT)
#define nid_to_addrbase(nid) ((unsigned long)(nid) << NODE_ADDRSPACE_SHIFT)

extern void __init prom_init_numa_memory(void);

#endif /* _ASM_MACH_MMZONE_H */

Annotation

Implementation Notes