]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit52826166b1a8342e769f7d6d0ed18ce6c883bf62
treea9ca7b04151fcbda9a104cc43e70604e3fe376df
parentfc13b7537463bf0aa1bcc44000de1511b672b012
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