Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc add OF_quiesce() to shut down OF ba...



details:   https://anonhg.NetBSD.org/src/rev/e3f033e04955
branches:  trunk
changeset: 786808:e3f033e04955
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sun May 12 13:50:11 2013 +0000

description:
add OF_quiesce() to shut down OF background tasks, needed on G5
from Phileas Fogg

diffstat:

 sys/arch/powerpc/powerpc/openfirm.c |  21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r c464cbeadac3 -r e3f033e04955 sys/arch/powerpc/powerpc/openfirm.c
--- a/sys/arch/powerpc/powerpc/openfirm.c       Sun May 12 13:42:39 2013 +0000
+++ b/sys/arch/powerpc/powerpc/openfirm.c       Sun May 12 13:50:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.c,v 1.21 2011/07/17 20:54:46 joerg Exp $      */
+/*     $NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -34,7 +34,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.21 2011/07/17 20:54:46 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -722,6 +722,23 @@
        return status;
 }
 
+void
+OF_quiesce(void)
+{
+       static struct {
+               const char *name;
+               int nargs;
+               int nreturns;
+       } args = {
+               "quiesce",
+               0,
+               0,
+       };
+
+       ofw_stack();
+       openfirmware(&args);
+}
+
 /*
  * This version of bcopy doesn't work for overlapping regions!
  */



Home | Main Index | Thread Index | Old Index