-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpayload.S
More file actions
29 lines (25 loc) · 747 Bytes
/
payload.S
File metadata and controls
29 lines (25 loc) · 747 Bytes
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
#if __riscv_xlen == 64
# define RISCV_PGLEVEL_BITS 9
#else
# define RISCV_PGLEVEL_BITS 10
#endif
#define RISCV_PGSHIFT 12
#define RISCV_PGSIZE (1 << RISCV_PGSHIFT)
##############################################################
# Payload Binary
##############################################################
.section ".payload","a",@progbits
.align RISCV_PGSHIFT + RISCV_PGLEVEL_BITS
.globl _payload_start, _payload_end
_payload_start:
.incbin PAYLOAD_BINARY
_payload_end:
##############################################################
# DTB Binary
##############################################################
.section ".dtb","a",@progbits
.align RISCV_PGLEVEL_BITS
.globl _dtb_start, _dtb_end
_dtb_start:
.incbin DTB_BINARY
_dtb_end: