arch/loongarch/include/asm/setup.h

Source file repositories/reference/linux-study-clean/arch/loongarch/include/asm/setup.h

File Facts

System
Linux kernel
Corpus path
arch/loongarch/include/asm/setup.h
Extension
.h
Size
1286 bytes
Lines
55
Domain
Architecture Layer
Bucket
arch/loongarch
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

struct rela_la_abs {
	long pc;
	long symvalue;
};

extern long __la_abs_begin;
extern long __la_abs_end;
extern long __rela_dyn_begin;
extern long __rela_dyn_end;

#ifdef CONFIG_RELR
extern long __relr_dyn_begin;
extern long __relr_dyn_end;
#endif

extern unsigned long __init relocate_kernel(void);

#endif

static inline unsigned long kaslr_offset(void)
{
	return (unsigned long)&_text - VMLINUX_LOAD_ADDRESS;
}

#endif /* __SETUP_H */

Annotation

Implementation Notes