|
配置:
内核2.6.14
make的是zImage
ZTEXTADDR 0x00010000
ZREALADDR 0x0C008000
ZBSSADDR 0x0C400000
head.S片断:
[code:1] add r1, r5, r0 @ end of decompressed kernel
adr r2, reloc_start
ldr r3, LC1
add r3, r2, r3
bl test0
1: ldmia r2!, {r8 - r13} @ copy relocation code
stmia r1!, {r8 - r13}
ldmia r2!, {r8 - r13}
stmia r1!, {r8 - r13}
cmp r2, r3
blo 1b
bl test1
add pc, r5, r0 @ call relocation code[/code:1]
其中bl test0和bl test1是我加上用来调试的,test0打印字符串(0),test1打印字符串(1)。
解压成功后,只能打印出字符串(0),却打印不出字符串(1):
Uncompressing Linux............................... done, booting the kernel.
(0)
各位路过的帮忙看看吧。 |
|