arch/arm64/kernel/setup.c
Source file repositories/reference/linux-study-clean/arch/arm64/kernel/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm64/kernel/setup.c- Extension
.c- Size
- 11569 bytes
- Lines
- 437
- Domain
- Architecture Layer
- Bucket
- arch/arm64
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/export.hlinux/kernel.hlinux/stddef.hlinux/ioport.hlinux/delay.hlinux/initrd.hlinux/console.hlinux/cache.hlinux/screen_info.hlinux/init.hlinux/kexec.hlinux/root_dev.hlinux/cpu.hlinux/interrupt.hlinux/smp.hlinux/fs.hlinux/panic_notifier.hlinux/proc_fs.hlinux/memblock.hlinux/of_fdt.hlinux/efi.hlinux/psci.hlinux/sched/task.hlinux/scs.hlinux/mm.hasm/acpi.hasm/fixmap.hasm/cpu.hasm/cputype.hasm/daifflags.hasm/elf.h
Detected Declarations
function smp_setup_processor_idfunction arch_match_cpu_phys_idfunction smp_build_mpidr_hashfunction setup_machine_fdtfunction request_standard_resourcesfunction for_each_mem_regionfunction reserve_memblock_reserved_regionsfunction for_each_reserved_mem_rangefunction cpu_logical_mapfunction setup_archfunction cpu_can_disablefunction arch_cpu_is_hotpluggablefunction dump_kernel_offsetfunction arm64_panic_block_dumpfunction register_arm64_panic_blockfunction check_mmu_enabled_at_bootmodule init register_arm64_panic_block
Annotated Snippet
device_initcall(register_arm64_panic_block);
static int __init check_mmu_enabled_at_boot(void)
{
if (!efi_enabled(EFI_BOOT) && mmu_enabled_at_boot)
panic("Non-EFI boot detected with MMU and caches enabled");
return 0;
}
device_initcall_sync(check_mmu_enabled_at_boot);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/export.h`, `linux/kernel.h`, `linux/stddef.h`, `linux/ioport.h`, `linux/delay.h`, `linux/initrd.h`, `linux/console.h`.
- Detected declarations: `function smp_setup_processor_id`, `function arch_match_cpu_phys_id`, `function smp_build_mpidr_hash`, `function setup_machine_fdt`, `function request_standard_resources`, `function for_each_mem_region`, `function reserve_memblock_reserved_regions`, `function for_each_reserved_mem_range`, `function cpu_logical_map`, `function setup_arch`.
- Atlas domain: Architecture Layer / arch/arm64.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.