subr_syscall.c (48005) | subr_syscall.c (49081) |
---|---|
1/*- 2 * Copyright (C) 1994, David Greenman 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the University of Utah, and William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 | 1/*- 2 * Copyright (C) 1994, David Greenman 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the University of Utah, and William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 |
38 * $Id: trap.c,v 1.138 1999/06/01 18:19:47 jlemon Exp $ | 38 * $Id: trap.c,v 1.139 1999/06/18 14:32:16 bde Exp $ |
39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_cpu.h" 46#include "opt_ddb.h" --- 308 unchanged lines hidden (view full) --- 355#endif 356 if (i == 0) 357 goto out; 358 359 ucode = T_PAGEFLT; 360 break; 361 362 case T_DIVIDE: /* integer divide fault */ | 39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_cpu.h" 46#include "opt_ddb.h" --- 308 unchanged lines hidden (view full) --- 355#endif 356 if (i == 0) 357 goto out; 358 359 ucode = T_PAGEFLT; 360 break; 361 362 case T_DIVIDE: /* integer divide fault */ |
363 ucode = FPE_INTDIV_TRAP; | 363 ucode = FPE_INTDIV; |
364 i = SIGFPE; 365 break; 366 367#if NISA > 0 368 case T_NMI: 369#ifdef POWERFAIL_NMI 370 goto handle_powerfail; 371#else /* !POWERFAIL_NMI */ --- 5 unchanged lines hidden (view full) --- 377#endif /* DDB */ 378 /* machine/parity/power fail/"kitchen sink" faults */ 379 if (isa_nmi(code) == 0) return; 380 panic("NMI indicates hardware failure"); 381#endif /* POWERFAIL_NMI */ 382#endif /* NISA > 0 */ 383 384 case T_OFLOW: /* integer overflow fault */ | 364 i = SIGFPE; 365 break; 366 367#if NISA > 0 368 case T_NMI: 369#ifdef POWERFAIL_NMI 370 goto handle_powerfail; 371#else /* !POWERFAIL_NMI */ --- 5 unchanged lines hidden (view full) --- 377#endif /* DDB */ 378 /* machine/parity/power fail/"kitchen sink" faults */ 379 if (isa_nmi(code) == 0) return; 380 panic("NMI indicates hardware failure"); 381#endif /* POWERFAIL_NMI */ 382#endif /* NISA > 0 */ 383 384 case T_OFLOW: /* integer overflow fault */ |
385 ucode = FPE_INTOVF_TRAP; | 385 ucode = FPE_INTOVF; |
386 i = SIGFPE; 387 break; 388 389 case T_BOUND: /* bounds check fault */ | 386 i = SIGFPE; 387 break; 388 389 case T_BOUND: /* bounds check fault */ |
390 ucode = FPE_SUBRNG_TRAP; | 390 ucode = FPE_FLTSUB; |
391 i = SIGFPE; 392 break; 393 394 case T_DNA: 395#if NNPX > 0 396 /* if a transparent fault (due to context switch "late") */ 397 if (npxdna()) 398 return; --- 737 unchanged lines hidden --- | 391 i = SIGFPE; 392 break; 393 394 case T_DNA: 395#if NNPX > 0 396 /* if a transparent fault (due to context switch "late") */ 397 if (npxdna()) 398 return; --- 737 unchanged lines hidden --- |