changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm64: provide idlehands() function

changeset 7207: 19de954d8073
parent 7206: 53f5476f9ffd
child 7208: 40ad429365ef
author: cinap_lenrek@felloff.net
date: Sun, 05 May 2019 13:59:03 +0200
files: sys/src/9/bcm64/l.s sys/src/9/bcm64/main.c
description: bcm64: provide idlehands() function
     1.1--- a/sys/src/9/bcm64/l.s
     1.2+++ b/sys/src/9/bcm64/l.s
     1.3@@ -291,6 +291,14 @@ TEXT splx(SB), 1, $-4
     1.4 	MSR	R0, DAIF
     1.5 	RETURN
     1.6 
     1.7+TEXT idlehands(SB), 1, $-4
     1.8+	DMB	$ISH
     1.9+	MOVW	nrdy(SB), R0
    1.10+	CBNZ	R0, _ready
    1.11+	WFI
    1.12+_ready:
    1.13+	RETURN
    1.14+
    1.15 TEXT cycles(SB), 1, $-4
    1.16 TEXT lcycles(SB), 1, $-4
    1.17 	MRS	PMCCNTR_EL0, R0
     2.1--- a/sys/src/9/bcm64/main.c
     2.2+++ b/sys/src/9/bcm64/main.c
     2.3@@ -260,11 +260,6 @@ mpinit(void)
     2.4 }
     2.5 
     2.6 void
     2.7-idlehands(void)
     2.8-{
     2.9-}
    2.10-
    2.11-void
    2.12 main(void)
    2.13 {
    2.14 	machinit();