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:
Alexander von Gluck IV 2012-05-06 12:04:47 -05:00
parent 79a9f645ba
commit 19b42424c6
2 changed files with 17 additions and 2 deletions

View File

@ -1,9 +1,24 @@
.globl _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 */
mov sp, #0x100000
mov r4, #0
/* Start loader */
/* Start Haiku loader */
b pi_start