[PATCH] firmware: Remove redundant add instruction from trap restore path

Jessica Clarke jrtc27 at jrtc27.com
Thu Apr 1 13:17:20 BST 2021


On 1 Apr 2021, at 12:19, Anup Patel <anup.patel at wdc.com> wrote:
> 
> The "add sp, a0, zero" instruction in the trap restore path is redundant
> and can be avoided if TRAP_RESTORE_xyz() assembly macros use a0 as the
> base register instead of sp.

Are interrupts disabled at this point?

Jess




More information about the opensbi mailing list