mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
firmware: Ensure the payloads are 4 bit alligned
We expect the payloads to be 4 bit alligned as we later AND them with ~0xf. As most of the addresses are manually specified we don't really need this, but better to be over cautious. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:

committed by
Anup Patel

parent
286b80768b
commit
d369e721e8
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "fw_base.S"
|
#include "fw_base.S"
|
||||||
|
|
||||||
.align 3
|
.align 4
|
||||||
.section .entry, "ax", %progbits
|
.section .entry, "ax", %progbits
|
||||||
.global fw_prev_arg1
|
.global fw_prev_arg1
|
||||||
fw_prev_arg1:
|
fw_prev_arg1:
|
||||||
@@ -21,7 +21,7 @@ fw_prev_arg1:
|
|||||||
#endif
|
#endif
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.align 3
|
.align 4
|
||||||
.section .entry, "ax", %progbits
|
.section .entry, "ax", %progbits
|
||||||
.global fw_next_arg1
|
.global fw_next_arg1
|
||||||
fw_next_arg1:
|
fw_next_arg1:
|
||||||
@@ -33,7 +33,7 @@ fw_next_arg1:
|
|||||||
#endif
|
#endif
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.align 3
|
.align 4
|
||||||
.section .entry, "ax", %progbits
|
.section .entry, "ax", %progbits
|
||||||
.global fw_next_addr
|
.global fw_next_addr
|
||||||
fw_next_addr:
|
fw_next_addr:
|
||||||
@@ -42,13 +42,14 @@ fw_next_addr:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
#ifdef FW_PAYLOAD_FDT_PATH
|
#ifdef FW_PAYLOAD_FDT_PATH
|
||||||
.align 3
|
.align 4
|
||||||
.section .text, "ax", %progbits
|
.section .text, "ax", %progbits
|
||||||
.globl fdt_bin
|
.globl fdt_bin
|
||||||
fdt_bin:
|
fdt_bin:
|
||||||
.incbin FW_PAYLOAD_FDT_PATH
|
.incbin FW_PAYLOAD_FDT_PATH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
.align 4
|
||||||
.section .payload, "ax", %progbits
|
.section .payload, "ax", %progbits
|
||||||
.globl payload_bin
|
.globl payload_bin
|
||||||
payload_bin:
|
payload_bin:
|
||||||
|
Reference in New Issue
Block a user