blob: d52c1dcfcfc0565a58740b1c9f57c982ab53b506 (
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
35
36
37
38
39
40
|
/* -------------------------------------------
Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
#ifdef __NE_NEBOOT__
.section .boot_hdr
.align 4
/* BootZ boot header begin */
boot_hdr_mag:
.ascii "CB"
boot_hdr_name:
// it has to match ten bytes.
.asciz "bootz\0\0\0"
boot_hdr_ver:
.word 0x101
boot_hdr_proc:
.long bootloader_start
/* BootZ boot header end */
.extern bootloader_main
.extern bootloader_stack
.globl bootloader_start
bootloader_start:
adr x0, bootloader_stack
ldr x1, =bootloader_start
sub x0, x0, x1
ldr x0, [x0]
mov sp, x0
bl bootloader_main
ret
#endif // __NE_NEBOOT__
|