diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-02-15 01:47:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-15 07:26:47 +0300 |
commit | d369e721e8588ebe8b21fb238bcdd182cc783e32 (patch) | |
tree | cffcf9a9aa7a23dc130af6c3c2e3d524d4d67359 | |
parent | 286b80768beb16130f869877875af2f581439b2b (diff) | |
download | opensbi-d369e721e8588ebe8b21fb238bcdd182cc783e32.tar.xz |
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>
-rw-r--r-- | firmware/fw_payload.S | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/fw_payload.S b/firmware/fw_payload.S index 51381c1..b86b63c 100644 --- a/firmware/fw_payload.S +++ b/firmware/fw_payload.S @@ -9,7 +9,7 @@ #include "fw_base.S" - .align 3 + .align 4 .section .entry, "ax", %progbits .global fw_prev_arg1 fw_prev_arg1: @@ -21,7 +21,7 @@ fw_prev_arg1: #endif ret - .align 3 + .align 4 .section .entry, "ax", %progbits .global fw_next_arg1 fw_next_arg1: @@ -33,7 +33,7 @@ fw_next_arg1: #endif ret - .align 3 + .align 4 .section .entry, "ax", %progbits .global fw_next_addr fw_next_addr: @@ -42,13 +42,14 @@ fw_next_addr: ret #ifdef FW_PAYLOAD_FDT_PATH - .align 3 + .align 4 .section .text, "ax", %progbits .globl fdt_bin fdt_bin: .incbin FW_PAYLOAD_FDT_PATH #endif + .align 4 .section .payload, "ax", %progbits .globl payload_bin payload_bin: |