riscv: Fix efi header for RV32
authorAtish Patra <atish.patra@wdc.com>
Tue, 13 Oct 2020 19:23:31 +0000 (12:23 -0700)
committerAndes <uboot@andestech.com>
Mon, 14 Dec 2020 07:16:54 +0000 (15:16 +0800)
commit84c3db2ea3b0e1eedb7557e4721b8880a14dcb69
treedd9aedbaa5f64b2e1631cfc1631237253990f982
parentb620363feb50ad9ec0623581567beb317e0d52d7
riscv: Fix efi header for RV32

RV32 should use PE32 format instead of PE32+ as the efi header format.
This requires following changes
1. A different header magic value
2. An additional parameter known as BaseOfData. Currently, it is set to
   zero in absence of any usage.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/lib/crt0_riscv_efi.S