shithub: riscv

Download patch

ref: de7190ba6bd21c0465e4aba2d7fe9b49f691ca97
parent: b0c402dfa64c507b43ffee1f0afb486fb48e6598
author: cinap_lenrek <[email protected]>
date: Sun May 5 09:59:03 EDT 2019

bcm64: provide idlehands() function

--- a/sys/src/9/bcm64/l.s
+++ b/sys/src/9/bcm64/l.s
@@ -291,6 +291,14 @@
 	MSR	R0, DAIF
 	RETURN
 
+TEXT idlehands(SB), 1, $-4
+	DMB	$ISH
+	MOVW	nrdy(SB), R0
+	CBNZ	R0, _ready
+	WFI
+_ready:
+	RETURN
+
 TEXT cycles(SB), 1, $-4
 TEXT lcycles(SB), 1, $-4
 	MRS	PMCCNTR_EL0, R0
--- a/sys/src/9/bcm64/main.c
+++ b/sys/src/9/bcm64/main.c
@@ -260,11 +260,6 @@
 }
 
 void
-idlehands(void)
-{
-}
-
-void
 main(void)
 {
 	machinit();