Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sandpoint/sandpoint Print "Model:" information with...



details:   https://anonhg.NetBSD.org/src/rev/0ae2c1ac5809
branches:  trunk
changeset: 771476:0ae2c1ac5809
user:      phx <phx%NetBSD.org@localhost>
date:      Tue Nov 22 16:56:29 2011 +0000

description:
Print "Model:" information with oea_startup().

diffstat:

 sys/arch/sandpoint/sandpoint/machdep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b5756a123a8b -r 0ae2c1ac5809 sys/arch/sandpoint/sandpoint/machdep.c
--- a/sys/arch/sandpoint/sandpoint/machdep.c    Tue Nov 22 15:30:17 2011 +0000
+++ b/sys/arch/sandpoint/sandpoint/machdep.c    Tue Nov 22 16:56:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.58 2011/08/13 21:04:05 christos Exp $    */
+/*     $NetBSD: machdep.c,v 1.59 2011/11/22 16:56:29 phx Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2011/08/13 21:04:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.59 2011/11/22 16:56:29 phx Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -230,13 +230,15 @@
 void
 cpu_startup(void)
 {
+       struct btinfo_prodfamily *bi_prod;
+       void *baseaddr;
        int msr;
-       void *baseaddr;
 
        /*
         * Do common startup.
         */
-       oea_startup(NULL);
+       bi_prod = lookup_bootinfo(BTINFO_PRODFAMILY);
+       oea_startup(bi_prod != NULL ? bi_prod->name : NULL);
 
        /*
         * Prepare EPIC and install external interrupt handler.



Home | Main Index | Thread Index | Old Index