arch/riscv/kernel/head.h

Source file repositories/reference/linux-study-clean/arch/riscv/kernel/head.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/kernel/head.h
Extension
.h
Size
416 bytes
Lines
21
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_HEAD_H
#define __ASM_HEAD_H

#include <linux/linkage.h>
#include <linux/init.h>

extern atomic_t hart_lottery;

asmlinkage void __init setup_vm(uintptr_t dtb_pa);

#ifdef CONFIG_RISCV_BOOT_SPINWAIT
extern void *__cpu_spinwait_stack_pointer[];
extern void *__cpu_spinwait_task_pointer[];
#endif

#endif /* __ASM_HEAD_H */

Annotation

Implementation Notes