Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc On ms-IIep kernel runs with PCI endian ...



details:   https://anonhg.NetBSD.org/src/rev/99d1476da3ba
branches:  trunk
changeset: 519095:99d1476da3ba
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Dec 11 03:35:02 2001 +0000

description:
On ms-IIep kernel runs with PCI endian swapping turned on but we need
to turn it off before we pass control to PROM's repl as it expects
PCIC to be in little endian mode and would hang otherwise.

diffstat:

 sys/arch/sparc/sparc/openfirm.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 6e87cc5711d0 -r 99d1476da3ba sys/arch/sparc/sparc/openfirm.c
--- a/sys/arch/sparc/sparc/openfirm.c   Tue Dec 11 03:28:38 2001 +0000
+++ b/sys/arch/sparc/sparc/openfirm.c   Tue Dec 11 03:35:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.c,v 1.5 2001/09/24 13:22:33 wiz Exp $ */
+/*     $NetBSD: openfirm.c,v 1.6 2001/12/11 03:35:02 uwe Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -639,7 +639,13 @@
        args.name = ADR2CELL("enter");
        args.nargs = 0;
        args.nreturns = 0;
+#if defined(MSIIEP)
+       msiiep_swap_endian(0);
+#endif
        openfirmware(&args);
+#if defined(MSIIEP)
+       msiiep_swap_endian(1);
+#endif
 }
 
 void
@@ -654,7 +660,13 @@
        args.name = ADR2CELL("exit");
        args.nargs = 0;
        args.nreturns = 0;
+#if defined(MSIIEP)
+       msiiep_swap_endian(0);
+#endif
        openfirmware(&args);
+#if defined(MSIIEP)
+       msiiep_swap_endian(1);
+#endif
        panic("OF_exit failed");
 }
 



Home | Main Index | Thread Index | Old Index