rpi: Remove need for first32k.bin
* Thanks go out to Simon Arlott for replacing the first32k.bin blob with assembly removing the need for first32k.bin hack. * This assembly is a modified version removing the Linux kernel boot args. * haiku_loader renamed to kernel.img will boot on Raspberry Pi directly.
This commit is contained in:
Binary file not shown.
@@ -1,9 +1,24 @@
|
|||||||
.globl _start
|
.globl _start
|
||||||
_start:
|
_start:
|
||||||
|
b boot
|
||||||
|
|
||||||
|
.balign 0x20
|
||||||
|
boot:
|
||||||
|
mov r0, #0
|
||||||
|
@ Machine ID 3138 (0xC42)
|
||||||
|
mov r1, #66
|
||||||
|
orr r1, r1, #3072
|
||||||
|
|
||||||
|
ldr pc, kern_addr
|
||||||
|
|
||||||
|
kern_addr:
|
||||||
|
.word kern
|
||||||
|
|
||||||
|
.balign 0x8000, 0
|
||||||
|
kern:
|
||||||
/* Set up 1MB C Stack Space */
|
/* Set up 1MB C Stack Space */
|
||||||
mov sp, #0x100000
|
mov sp, #0x100000
|
||||||
|
mov r4, #0
|
||||||
|
|
||||||
mov r4,#0
|
/* Start Haiku loader */
|
||||||
/* Start loader */
|
|
||||||
b pi_start
|
b pi_start
|
||||||
|
|||||||
Reference in New Issue
Block a user