Kernel Startup
- KernelAnalysis-HOWTO
- Android 筆記-Linux Kernel SMP (Symmetric Multi-Processors) 開機流程解析
- [path to kernel]/arch/arm/boot/Makefile
ifneq ($(MACHINE),)
include $(srctree)/$(MACHINE)/Makefile.boot
endif
ZRELADDR := $(zreladdr-y)
PARAMS_PHYS := $(params_phys-y)
INITRD_PHYS := $(initrd_phys-y)
- $(srctree)/$(MACHINE)/Makefile.boot
- [path to kernel]/arch/???/kernel/vmlinux.lds
ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET)
- [path to kernel]/arch/???/kernel/head.S
- ARM
.globl swapper_pg_dir
.equ swapper_pg_dir, KERNEL_RAM_VADDR - 0x4000
- swapper_pg_dir is the virtual address of the initial page table
- The page tables are 16K below KERNEL_RAM_VADDR
- x86
page revision: 27, last edited: 02 Apr 2014 07:10