shithub: riscv

Download patch

ref: c45ffa6883b3a5a90ed712d60f3123f2fed07513
parent: d035ef2419f965e3a49e54ca9b706e4a5f14d827
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 8 06:54:10 EDT 2023

imx8, bcm64: make sure interrupts are of (sched() re-enables them)

--- a/sys/src/9/bcm64/trap.c
+++ b/sys/src/9/bcm64/trap.c
@@ -278,8 +278,10 @@
 	if(scallnr != RFORK && (up->procctl || up->nnote))
 		notify(ureg);
 
-	if(up->delaysched)
+	if(up->delaysched){
 		sched();
+		splhi();
+	}
 
 	kexit(ureg);
 	fpukexit(ureg, nil);
--- a/sys/src/9/imx8/trap.c
+++ b/sys/src/9/imx8/trap.c
@@ -278,8 +278,10 @@
 	if(scallnr != RFORK && (up->procctl || up->nnote))
 		notify(ureg);
 
-	if(up->delaysched)
+	if(up->delaysched){
 		sched();
+		splhi();
+	}
 
 	kexit(ureg);
 	fpukexit(ureg, nil);