Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/walnut Load SPRG0 with &cpu_info_store.



details:   https://anonhg.NetBSD.org/src/rev/7e002050f058
branches:  trunk
changeset: 542474:7e002050f058
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jan 30 07:46:28 2003 +0000

description:
Load SPRG0 with &cpu_info_store.

diffstat:

 sys/arch/evbppc/walnut/machdep.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 5ec62cd1cb57 -r 7e002050f058 sys/arch/evbppc/walnut/machdep.c
--- a/sys/arch/evbppc/walnut/machdep.c  Thu Jan 30 05:51:58 2003 +0000
+++ b/sys/arch/evbppc/walnut/machdep.c  Thu Jan 30 07:46:28 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.3 2003/01/17 22:48:44 thorpej Exp $      */
+/*     $NetBSD: machdep.c,v 1.4 2003/01/30 07:46:28 matt Exp $ */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -178,6 +178,9 @@
        extern char _edata, _end;
        struct cpu_info * const ci = &cpu_info_store;
 
+       /* Set the curcpu() pointer */
+       mtspr(SPR_SPRG0, ci);
+
        /* Disable all external interrupts */
        mtdcr(DCR_UIC0_ER, 0);
 



Home | Main Index | Thread Index | Old Index