arch/risc-v: Add handler for misaligned load/store

Some risc-v based chips don't support unaligned data access,
it will trigger a exception and then lead to crash.

In this patch, we handle the misaligned access by software to make
system run continue.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2022-03-30 15:17:50 +08:00
committed by Xiang Xiao
parent 4b6743591a
commit c6942b68d5
2 changed files with 509 additions and 0 deletions
+1
View File
@@ -287,6 +287,7 @@ void riscv_netinitialize(void);
uintptr_t *riscv_doirq(int irq, uintptr_t *regs);
void riscv_exception(uintptr_t mcause, uintptr_t *regs);
int riscv_misaligned(int irq, void *context, void *arg);
/* Debug ********************************************************************/
File diff suppressed because it is too large Load Diff