Load SPRG0 with &cpu_info_store.

This commit is contained in:
matt 2003-01-30 07:46:28 +00:00
parent 161af1dd62
commit e680c1c1e9
1 changed files with 4 additions and 1 deletions

View File

@ -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 @@ initppc(u_int startkernel, u_int endkernel, char *args, void *info_block)
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);