Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/stand/ofwboot Provide commented out OF_enter...



details:   https://anonhg.NetBSD.org/src/rev/a5841c9f5ba9
branches:  trunk
changeset: 833052:a5841c9f5ba9
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Jun 06 23:50:29 2018 +0000

description:
Provide commented out OF_enter() that comes in handy when debugging.

diffstat:

 sys/arch/macppc/stand/ofwboot/Locore.c   |  20 +++++++++++++++++++-
 sys/arch/macppc/stand/ofwboot/openfirm.h |   3 ++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 1f07f8035895 -r a5841c9f5ba9 sys/arch/macppc/stand/ofwboot/Locore.c
--- a/sys/arch/macppc/stand/ofwboot/Locore.c    Wed Jun 06 22:56:25 2018 +0000
+++ b/sys/arch/macppc/stand/ofwboot/Locore.c    Wed Jun 06 23:50:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: Locore.c,v 1.30 2018/06/06 22:56:25 uwe Exp $  */
+/*     $NetBSD: Locore.c,v 1.31 2018/06/06 23:50:29 uwe Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -179,6 +179,24 @@
        OF_exit();
 }
 
+#if 0
+void
+OF_enter(void)
+{
+       static struct {
+               const char *name;
+               int nargs;
+               int nreturns;
+       } args = {
+               "enter",
+               0,
+               0
+       };
+
+       openfirmware(&args);
+}
+#endif /* OF_enter */
+
 __dead void
 OF_exit(void)
 {
diff -r 1f07f8035895 -r a5841c9f5ba9 sys/arch/macppc/stand/ofwboot/openfirm.h
--- a/sys/arch/macppc/stand/ofwboot/openfirm.h  Wed Jun 06 22:56:25 2018 +0000
+++ b/sys/arch/macppc/stand/ofwboot/openfirm.h  Wed Jun 06 23:50:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.h,v 1.7 2007/12/24 15:46:45 perry Exp $       */
+/*     $NetBSD: openfirm.h,v 1.8 2018/06/06 23:50:29 uwe Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -39,6 +39,7 @@
 
 #include "boot.h"
 
+void OF_enter(void);
 __dead void OF_exit(void);
 int OF_finddevice(const char *);
 int OF_instance_to_package(int);



Home | Main Index | Thread Index | Old Index