diff options
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/ip30_machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c index 887e47c7179..9d30c26480a 100644 --- a/sys/arch/sgi/sgi/ip30_machdep.c +++ b/sys/arch/sgi/sgi/ip30_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip30_machdep.c,v 1.25 2009/11/27 10:22:09 syuu Exp $ */ +/* $OpenBSD: ip30_machdep.c,v 1.26 2009/12/02 01:42:14 syuu Exp $ */ /* * Copyright (c) 2008, 2009 Miodrag Vallat. @@ -360,6 +360,7 @@ hw_cpu_boot_secondary(struct cpu_info *ci) if (kstack == NULL) panic("unable to allocate idle stack\n"); bzero((char *)kstack, USPACE); + ci->ci_curprocpaddr = (void *)kstack; *(volatile uint64_t *)(mpconf + MPCONF_STACKADDR(cpuid)) = (uint64_t)(kstack + USPACE); @@ -398,8 +399,6 @@ hw_cpu_hatch(struct cpu_info *ci) Mips10k_ConfigCache(); - ci->ci_curprocpaddr = proc0paddr; - sys_config.cpu[cpuid].tlbwired = UPAGES / 2; tlb_set_wired(0); tlb_flush(sys_config.cpu[cpuid].tlbsize); |