blob: ed39c3b5b53bce5e1676c900485e32cb50a3d595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* -------------------------------------------
Copyright SoftwareLabs
------------------------------------------- */
.section .boot_hdr
.align 4
/* NewBoot boot header begin */
boot_hdr_mag:
.ascii "CB"
boot_hdr_name:
// it has to match ten bytes.
.asciz "newosldr\0\0"
boot_hdr_ver:
.word 0x104
boot_hdr_proc:
.long bootloader_start
/* NewOS boot header end */
.extern bootloader_main
.extern bootloader_stack
.globl bootloader_start
bootloader_start:
mflr 4 /* real address of .Laddr */
lwz 0,(bootloader_stack-bootloader_start)(4) /* stack address location */
mr 1,0 /* use user defined stack */
bl bootloader_main
blr
|