riscv: align mtvec on a 4-byte boundary
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Thu, 22 Nov 2018 10:26:25 +0000 (11:26 +0100)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:57:31 +0000 (13:57 +0800)
commit2a23ac610709bc18b2becebb45abc7596b4d1e9c
treea9ca7b04151fcbda9a104cc43e70604e3fe376df
parentc55309c091853531ffa21937e652b321c4b650bb
riscv: align mtvec on a 4-byte boundary

The machine trap-vector base address (mtvec) must be aligned on a 4-byte
boundary. Add the necessary align directive to trap_entry.

This patch also removes the global directive for trap_entry, which is
not required.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/cpu/start.S