[U-Boot] [PATCH 20/30] riscv: align mtvec on a 4-byte boundary

Bin Meng bmeng.cn at gmail.com
Mon Oct 22 07:47:10 UTC 2018


Hi Lukas,

On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> The machine trap-vector base address (mtvec) must be aligned on a 4-byte
> boundary. Add the necessary align directive to trap_entry.
>

I don't think this explicit alignment is needed because the
instructions before trap_entry are already on 4-byte boundary.

> This patch also removes the global directive for trap_entry, which is
> not required.
>
> Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> ---
>
>  arch/riscv/cpu/start.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Regards,
Bin


More information about the U-Boot mailing list