arch/riscv/trap_handler.c: Use new names for CSR
sbadaddr and mbadaddr are deprecated names. This fixes compilation with clang. Change-Id: I5c8fa82b6131dec10f55e8ebcf36b34e30b57bad Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74569 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
0d504c8c0f
commit
917261d11c
|
@ -150,7 +150,7 @@ void trap_handler(trapframe *tf)
|
|||
/* This function used to redirect trap to s-mode. */
|
||||
void redirect_trap(void)
|
||||
{
|
||||
write_csr(sbadaddr, read_csr(mbadaddr));
|
||||
write_csr(stval, read_csr(mtval));
|
||||
write_csr(sepc, read_csr(mepc));
|
||||
write_csr(scause, read_csr(mcause));
|
||||
write_csr(mepc, read_csr(stvec));
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
csrrw t0,mscratch,x0
|
||||
csrr s0,mstatus
|
||||
csrr t1,mepc
|
||||
csrr t2,mbadaddr
|
||||
csrr t2,mtval
|
||||
csrr t3,mcause
|
||||
STORE t0,2*REGBYTES(x2)
|
||||
STORE s0,32*REGBYTES(x2)
|
||||
|
|
Loading…
Reference in New Issue