diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-13 20:43:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-13 20:43:14 +0000 |
commit | 4d292eec5452f2145e7e2e8155ad77db73a23a7d (patch) | |
tree | fa14d4607bb70a522ca00c996396a5b56333feb6 /sys/arch/i386 | |
parent | 1fe54e04fa926e442498ef0ab01e9e5fe5fbba68 (diff) |
Don't assert that P_INMEM is set in p_flag. The assert is only almost
correct because P_INMEM is for various reasons removed before cpu_swapout
is called and cpu_swapout in turn calls npxsave_proc.
deraadt@ ok
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/isa/npx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index 4111ba0ab90..423a998ffde 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npx.c,v 1.32 2004/06/13 21:49:16 niklas Exp $ */ +/* $OpenBSD: npx.c,v 1.33 2004/07/13 20:43:13 art Exp $ */ /* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */ #if 0 @@ -775,14 +775,13 @@ npxsave_cpu(struct cpu_info *ci, int save) /* * Save p's FPU state, which may be on this processor or another processor. */ - void +void npxsave_proc(struct proc *p, int save) { struct cpu_info *ci = curcpu(); struct cpu_info *oci; KDASSERT(p->p_addr != NULL); - KDASSERT(p->p_flag & P_INMEM); oci = p->p_addr->u_pcb.pcb_fpcpu; if (oci == NULL) |