Hi,

This adds the RISC-V trap entry and exit path to locore.S and
the corresponding scause exception code definitions.

Patch 1 removes the redundant RISCV_PT_SHIFT (already covered by
PAGE_SHIFT) and adds the missing scause codes to exception.h.

Patch 2 replaces the x86 trap stubs in locore.S with a working
RISC-V trap entry/exit that saves and restores the full register
frame, and updates the trap.c stubs (riscv64_exception and
interrupted_pc).

Regards,

Diego


Diego Meretta (2):
  riscv64: Remove RISCV_PT_SHIFT and add missing scause codes
  riscv64: Add trap entry/exit and implement interrupted_pc

 riscv64/include/mach/riscv64/exception.h |   4 +
 riscv64/riscv64/locore.S                 | 173 +++++++++++++++++------
 riscv64/riscv64/pmap.h                   |   1 -
 riscv64/riscv64/trap.c                   |  14 +-
 4 files changed, 134 insertions(+), 58 deletions(-)

-- 
2.43.0


Reply via email to