diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-05 13:59:03 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-05 13:59:03 +0200 |
commit | de7190ba6bd21c0465e4aba2d7fe9b49f691ca97 (patch) | |
tree | 228a7e8704872125c029aaa5e177db12eea38e1e | |
parent | b0c402dfa64c507b43ffee1f0afb486fb48e6598 (diff) | |
download | plan9front-de7190ba6bd21c0465e4aba2d7fe9b49f691ca97.tar.xz |
bcm64: provide idlehands() function
-rw-r--r-- | sys/src/9/bcm64/l.s | 8 | ||||
-rw-r--r-- | sys/src/9/bcm64/main.c | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/src/9/bcm64/l.s b/sys/src/9/bcm64/l.s index fb5f35fa3..a6a10e69f 100644 --- a/sys/src/9/bcm64/l.s +++ b/sys/src/9/bcm64/l.s @@ -291,6 +291,14 @@ TEXT splx(SB), 1, $-4 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 diff --git a/sys/src/9/bcm64/main.c b/sys/src/9/bcm64/main.c index 2a08c935b..f82ca0f61 100644 --- a/sys/src/9/bcm64/main.c +++ b/sys/src/9/bcm64/main.c @@ -260,11 +260,6 @@ mpinit(void) } void -idlehands(void) -{ -} - -void main(void) { machinit(); |