arch/riscv/include/asm/sparsemem.h

Source file repositories/reference/linux-study-clean/arch/riscv/include/asm/sparsemem.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/include/asm/sparsemem.h
Extension
.h
Size
331 bytes
Lines
16
Domain
Architecture Layer
Bucket
arch/riscv
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_RISCV_SPARSEMEM_H
#define _ASM_RISCV_SPARSEMEM_H

#ifdef CONFIG_SPARSEMEM
#ifdef CONFIG_64BIT
#define MAX_PHYSMEM_BITS	56
#else
#define MAX_PHYSMEM_BITS	32
#endif /* CONFIG_64BIT */
#define SECTION_SIZE_BITS	27
#endif /* CONFIG_SPARSEMEM */

#endif /* _ASM_RISCV_SPARSEMEM_H */

Annotation

Implementation Notes