arch/riscv/boot/loader.lds.S

Source file repositories/reference/linux-study-clean/arch/riscv/boot/loader.lds.S

File Facts

System
Linux kernel
Corpus path
arch/riscv/boot/loader.lds.S
Extension
.S
Size
206 bytes
Lines
18
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: arch/riscv
Status
atlas-only

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

#include <asm/page.h>
#include <asm/pgtable.h>

OUTPUT_ARCH(riscv)
ENTRY(_start)

SECTIONS
{
	. = KERNEL_LINK_ADDR;

	.payload : {
		*(.payload)
		. = ALIGN(8);
	}
}

Annotation

Implementation Notes