U-Boot: ARM: Add a linux entry point to asm shell code
While the NetBSD entry point is handy as we can use a single uImage with all 3 blobs, it bypasses U-Boot's own patching of the FDT since it's not visible to it, so we won't get the RAM size and other things through it.
This commit is contained in:
parent
5de5d59d78
commit
d1ebf9716d
@ -30,6 +30,14 @@ SYMBOL(_start_netbsd):
|
|||||||
b _start_common
|
b _start_common
|
||||||
SYMBOL_END(_start_netbsd)
|
SYMBOL_END(_start_netbsd)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* called from bootm with linux loader compatible args
|
||||||
|
*/
|
||||||
|
SYMBOL(_start_linux):
|
||||||
|
mov r4,#2
|
||||||
|
b _start_common
|
||||||
|
SYMBOL_END(_start_linux)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SYMBOL(_start_common):
|
SYMBOL(_start_common):
|
||||||
@ -63,6 +71,8 @@ SYMBOL(_start_common):
|
|||||||
beq start_raw
|
beq start_raw
|
||||||
cmp r4,#1
|
cmp r4,#1
|
||||||
beq start_netbsd
|
beq start_netbsd
|
||||||
|
cmp r4,#2
|
||||||
|
beq start_linux
|
||||||
mov pc,lr
|
mov pc,lr
|
||||||
SYMBOL_END(_start_common)
|
SYMBOL_END(_start_common)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user