summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2022-02-20 18:56:01 +0000
committerchristos <christos@NetBSD.org>2022-02-20 18:56:01 +0000
commitd8b7feece78b184e21b6ce019621fddcdc1e96bf (patch)
treea747b78d04a82bb34d78c640f8f767870ee1599f /sys/arch/evbppc
parent91de26f0370281081a2e45b08888c2134d08eedd (diff)
Convert assembly to something both gcc and clang understand.
Diffstat (limited to 'sys/arch/evbppc')
-rw-r--r--sys/arch/evbppc/dht/locore.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/evbppc/dht/locore.S b/sys/arch/evbppc/dht/locore.S
index 835f79bb69c..12d05d05c2a 100644
--- a/sys/arch/evbppc/dht/locore.S
+++ b/sys/arch/evbppc/dht/locore.S
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.1 2021/04/02 07:00:33 rin Exp $ */
+/* $NetBSD: locore.S,v 1.2 2022/02/20 18:56:01 christos Exp $ */
/*
* Taken from src/sys/arch/powerpc/ibm4xx/openbios/locore.s:
@@ -120,9 +120,9 @@ __start:
* Note: Meaning of bits we need to set is undocumented.
*/
sync
- mfccr0 %r0
+ mfspr %r0,947 /* mfccr0 %r0 */
oris %r0,%r0,0x50000000@h
- mtccr0 %r0
+ mtspr 947,%r0 /* mtccr0 %r0 */
isync
/* PPC405GP errata, item #58.