Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcarm/hpcarm Initialize platid in hpc_machdep().



details:   https://anonhg.NetBSD.org/src/rev/2d7208417a48
branches:  trunk
changeset: 508678:2d7208417a48
user:      toshii <toshii%NetBSD.org@localhost>
date:      Tue Apr 17 15:33:39 2001 +0000

description:
Initialize platid in hpc_machdep().

diffstat:

 sys/arch/hpcarm/hpcarm/hpc_machdep.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r ede5639993be -r 2d7208417a48 sys/arch/hpcarm/hpcarm/hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Tue Apr 17 15:19:41 2001 +0000
+++ b/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Tue Apr 17 15:33:39 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpc_machdep.c,v 1.9 2001/04/06 05:38:01 toshii Exp $   */
+/*     $NetBSD: hpc_machdep.c,v 1.10 2001/04/17 15:33:39 toshii Exp $  */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -86,6 +86,7 @@
 #include <machine/bootinfo.h>
 #include <machine/undefined.h>
 #include <machine/rtc.h>
+#include <hpc/hpc/platid.h>
 #include <hpcarm/sa11x0/sa11x0_reg.h>
 
 #include <dev/hpc/bicons.h>
@@ -732,6 +733,11 @@
                Debugger();
 #endif /* DDB */
 
+       if (bootinfo->magic == BOOTINFO_MAGIC) {
+               platid.dw.dw0 = bootinfo->platid_cpu;
+               platid.dw.dw1 = bootinfo->platid_machine;
+       }
+
        /* We return the new stack pointer address */
        return(kernelstack.pv_va + USPACE_SVC_STACK_TOP);
 }



Home | Main Index | Thread Index | Old Index