diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-27 10:22:10 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-27 10:22:10 +0000 |
commit | ba1a3c3d7bd795f2a05b88fc73e732f9e76c29c0 (patch) | |
tree | 5813aa0ed0be7fdfdf28f49cbc1fcec30622c08f /sys/arch/sgi | |
parent | 0ecd0155a2615c86d48954625216a41358beba94 (diff) |
ci->ci_curprocpaddr must initialized before cpu1 get into cpu_switchto().
ok miod@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/ip30_machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c index 5f411d2ede6..887e47c7179 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.24 2009/11/25 17:39:51 syuu Exp $ */ +/* $OpenBSD: ip30_machdep.c,v 1.25 2009/11/27 10:22:09 syuu Exp $ */ /* * Copyright (c) 2008, 2009 Miodrag Vallat. @@ -58,6 +58,8 @@ extern int xheart_intr_establish(int (*)(void *), void *, int, int, extern void xheart_intr_set(int); extern void xheart_intr_clear(int); extern void xheart_setintrmask(int); + +extern struct user *proc0paddr; #endif uint32_t ip30_lights_frob(uint32_t, struct trap_frame *); @@ -396,6 +398,8 @@ 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); |