if defined SOFTFLOAT, set fpcurproc before call MachFPInterrupt()
This commit is contained in:
parent
70ac5e4326
commit
6764e5fc91
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.133 2000/05/30 01:23:53 nisimura Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.134 2000/05/30 18:12:47 uch Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.133 2000/05/30 01:23:53 nisimura Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.134 2000/05/30 18:12:47 uch Exp $");
|
||||
|
||||
#include "opt_cputype.h" /* which mips CPU levels do we support? */
|
||||
#include "opt_inet.h"
|
||||
@ -677,10 +677,11 @@ trap(status, cause, vaddr, opc, frame)
|
||||
p->p_md.md_flags |= MDP_FPUSED;
|
||||
f->f_regs[SR] |= MIPS_SR_COP_1_BIT;
|
||||
}
|
||||
#else
|
||||
#endif /* !SOFTFLOAT */
|
||||
fpcurproc = p;
|
||||
#ifdef SOFTFLOAT
|
||||
MachFPInterrupt(status, cause, opc, p->p_md.md_regs);
|
||||
#endif
|
||||
fpcurproc = p;
|
||||
userret(p, opc, sticks);
|
||||
return; /* GEN */
|
||||
case T_FPE+T_USER:
|
||||
|
Loading…
Reference in New Issue
Block a user