diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-07-10 19:23:17 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-07-10 19:23:17 +0000 |
commit | 2455f09608168afaed08d552756e04d58bde6e23 (patch) | |
tree | be0cda6c9ad76f1bfb58e238e59f60fc9615f002 | |
parent | dc06cac74da4dd1ddc40bd80dbf3a6a6b9848024 (diff) |
small bit of cleaning
-rw-r--r-- | sys/arch/sparc64/sparc64/trap.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index cfeff9e132c..e627538c2e0 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.27 2003/07/10 15:26:54 jason Exp $ */ +/* $OpenBSD: trap.c,v 1.28 2003/07/10 19:23:16 jason Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -455,7 +455,6 @@ trap(tf, type, pc, tstate) * the FPU. */ if (type == T_FPDISABLED) { -extern void db_printf(const char * , ...); #ifndef NEW_FPSTATE if (fpproc != NULL) { /* someone else had it */ savefpstate(fpproc->p_md.md_fpstate); @@ -572,11 +571,7 @@ badtrap: } case T_INST_EXCEPT: - trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ - break; case T_TEXTFAULT: - trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ - break; case T_PRIVINST: trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ break; @@ -597,14 +592,10 @@ badtrap: * Since All UltraSPARC CPUs have an FPU how can this happen? */ if (!foundfpu) { -#ifdef notyet - fpu_emulate(p, tf, fs); + trapsignal(p, SIGFPE, 0, FPE_FLTINV, sv); break; -#else - trapsignal(p, SIGFPE, 0, FPE_FLTINV, sv); /* XXX code?? */ - break; -#endif } + /* * We may have more FPEs stored up and/or ops queued. * If they exist, handle them and get out. Otherwise, |