linux 解压后会跳转到,kernel执行地址: head.S中入口执行。解压之前的操作流程呢?
1. linux kernel 被uboot load到内存后的入口函数
arch/arm/boot/compressed/vmlinux.lds.in中定义了linux 入口:
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
....
这里的start定义在 arch/arm/boot/compressed/head.s中
start:
.type start,#function
.rept 7
mov r0, r0
.endr
ARM( mov r0, r0 )
ARM( b 1f )
THUMB( adr r12, BSYM(1f) )
THUMB( bx r12 )
THUMB( bx r12 )
.word 0x016f2818 @ Magic numbers to help the loade