arch/sparc/kernel/head_64.S
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/head_64.S
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/head_64.S- Extension
.S- Size
- 23519 bytes
- Lines
- 970
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
Dependency Surface
linux/version.hlinux/errno.hlinux/export.hlinux/threads.hlinux/init.hlinux/linkage.hlinux/pgtable.hasm/thread_info.hasm/asi.hasm/pstate.hasm/ptrace.hasm/spitfire.hasm/page.hasm/errno.hasm/signal.hasm/processor.hasm/lsu.hasm/dcr.hasm/dcu.hasm/head.hasm/ttable.hasm/mmu.hasm/cpudata.hasm/pil.hasm/estate.hasm/sfafsr.hasm/unistd.hetrap_64.Srtrap_64.Swinfixup.Sfpu_traps.Sivec.S
Detected Declarations
export prom_root_nodeexport sun4v_chip_typeexport tlb_type
Annotated Snippet
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/threads.h>
#include <linux/init.h>
#include <linux/linkage.h>
#include <linux/pgtable.h>
#include <asm/thread_info.h>
#include <asm/asi.h>
#include <asm/pstate.h>
#include <asm/ptrace.h>
#include <asm/spitfire.h>
#include <asm/page.h>
#include <asm/errno.h>
#include <asm/signal.h>
#include <asm/processor.h>
#include <asm/lsu.h>
#include <asm/dcr.h>
#include <asm/dcu.h>
#include <asm/head.h>
#include <asm/ttable.h>
#include <asm/mmu.h>
#include <asm/cpudata.h>
#include <asm/pil.h>
#include <asm/estate.h>
#include <asm/sfafsr.h>
#include <asm/unistd.h>
/* This section from from _start to sparc64_boot_end should fit into
* 0x0000000000404000 to 0x0000000000408000.
*/
.text
.globl start, _start, stext, _stext
_start:
start:
_stext:
stext:
! 0x0000000000404000
b sparc64_boot
flushw /* Flush register file. */
/* This stuff has to be in sync with SILO and other potential boot loaders
* Fields should be kept upward compatible and whenever any change is made,
* HdrS version should be incremented.
*/
.global root_flags, ram_flags, root_dev
.global sparc_ramdisk_image, sparc_ramdisk_size
.global sparc_ramdisk_image64
.ascii "HdrS"
.word LINUX_VERSION_CODE
/* History:
*
* 0x0300 : Supports being located at other than 0x4000
* 0x0202 : Supports kernel params string
* 0x0201 : Supports reboot_command
*/
.half 0x0301 /* HdrS version */
root_flags:
.half 1
root_dev:
.half 0
ram_flags:
.half 0
sparc_ramdisk_image:
.word 0
sparc_ramdisk_size:
.word 0
Annotation
- Immediate include surface: `linux/version.h`, `linux/errno.h`, `linux/export.h`, `linux/threads.h`, `linux/init.h`, `linux/linkage.h`, `linux/pgtable.h`, `asm/thread_info.h`.
- Detected declarations: `export prom_root_node`, `export sun4v_chip_type`, `export tlb_type`.
- Atlas domain: Architecture Layer / arch/sparc.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.