From c3f3ef91b2eac0ad47991420f26f572182095813 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 6 Jan 2024 16:33:42 +0800 Subject: [PATCH] fix #474 dbf28fbd61abca5d555fa595008845e9a1961dc0 from 9 months ago actually broke the resume path, but we didn't see it until now because the .a files are checked into the tree. --- kernel/src/arch/riscv/asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/riscv/asm.S b/kernel/src/arch/riscv/asm.S index 767d9d40f..183161e20 100644 --- a/kernel/src/arch/riscv/asm.S +++ b/kernel/src/arch/riscv/asm.S @@ -52,7 +52,7 @@ _start: // set scause to simulate an interrupt's occurrence -- this makes the resume "feel like" an interrupt // vectored into the same routine that caused the suspend, but without having gone through the typical // interrupt handler mechanisms - li t0, 0x80000000 + li t0, 0x80000009 csrw scause, t0 // this is the same path the suspend interrupt took, but we set it up manually