Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbppc/dht Convert assembly to something both gcc a...



details:   https://anonhg.NetBSD.org/src/rev/43da9114fc49
branches:  trunk
changeset: 361984:43da9114fc49
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 20 18:56:01 2022 +0000

description:
Convert assembly to something both gcc and clang understand.

diffstat:

 sys/arch/evbppc/dht/locore.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 8ba7b35aa6fc -r 43da9114fc49 sys/arch/evbppc/dht/locore.S
--- a/sys/arch/evbppc/dht/locore.S      Sun Feb 20 15:21:14 2022 +0000
+++ b/sys/arch/evbppc/dht/locore.S      Sun Feb 20 18:56:01 2022 +0000
@@ -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 @@
         * 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.



Home | Main Index | Thread Index | Old Index