include: sbi: Add trap_context pointer in struct sbi_scratch
authorAnup Patel <apatel@ventanamicro.com>
Mon, 11 Mar 2024 07:09:00 +0000 (12:39 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 Mar 2024 06:01:20 +0000 (11:31 +0530)
commit60ffc154c84dfe93b23bd02566310deb153a4360
treebfcfdc93ba5f659f75b909a6771aef716873b7f9
parentebb697ad8cdd5c281a94e7801fc0c1d99d6a891e
include: sbi: Add trap_context pointer in struct sbi_scratch

To track nested traps, the struct sbi_scratch needs a pointer the
current trap context so add trap_context pointer in struct sbi_context.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
firmware/fw_base.S
include/sbi/sbi_scratch.h