diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-12-02 01:42:15 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-12-02 01:42:15 +0000 |
commit | 7368b46d550342a4ab142f16bae97ee4fd4698d0 (patch) | |
tree | 3497cf418e7f425c63a8ec560a2aa32f59e6742e /sys/arch/sgi | |
parent | 1f9ad602a4969729752c8cbc0a2809b5bc3f73a3 (diff) |
use kstack for curprocpaddr instead of proc0paddr.
ok miod@
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); |