subr_syscall.c (41868) | subr_syscall.c (42135) |
---|---|
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.130 1998/12/06 00:03:30 archie Exp $ | 38 * $Id: trap.c,v 1.131 1998/12/16 15:21:50 bde Exp $ |
39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_cpu.h" 46#include "opt_ddb.h" --- 41 unchanged lines hidden (view full) --- 88#include <sys/syslog.h> 89#include <machine/clock.h> 90#endif 91 92#ifdef VM86 93#include <machine/vm86.h> 94#endif 95 | 39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_cpu.h" 46#include "opt_ddb.h" --- 41 unchanged lines hidden (view full) --- 88#include <sys/syslog.h> 89#include <machine/clock.h> 90#endif 91 92#ifdef VM86 93#include <machine/vm86.h> 94#endif 95 |
96#ifdef DDB 97 extern int in_Debugger, debugger_on_panic; 98#endif 99 |
|
96#include "isa.h" 97#include "npx.h" 98 99extern struct i386tss common_tss; 100 101int (*pmath_emulate) __P((struct trapframe *)); 102 103extern void trap __P((struct trapframe frame)); --- 792 unchanged lines hidden (view full) --- 896#endif 897 printf("\n"); 898 899#ifdef KDB 900 if (kdb_trap(&psl)) 901 return; 902#endif 903#ifdef DDB | 100#include "isa.h" 101#include "npx.h" 102 103extern struct i386tss common_tss; 104 105int (*pmath_emulate) __P((struct trapframe *)); 106 107extern void trap __P((struct trapframe frame)); --- 792 unchanged lines hidden (view full) --- 900#endif 901 printf("\n"); 902 903#ifdef KDB 904 if (kdb_trap(&psl)) 905 return; 906#endif 907#ifdef DDB |
904 if (kdb_trap (type, 0, frame)) | 908 if ((debugger_on_panic || in_Debugger) && kdb_trap(type, 0, frame)) |
905 return; 906#endif 907 printf("trap number = %d\n", type); 908 if (type <= MAX_TRAP_MSG) 909 panic(trap_msg[type]); 910 else 911 panic("unknown/reserved trap"); 912} --- 226 unchanged lines hidden --- | 909 return; 910#endif 911 printf("trap number = %d\n", type); 912 if (type <= MAX_TRAP_MSG) 913 panic(trap_msg[type]); 914 else 915 panic("unknown/reserved trap"); 916} --- 226 unchanged lines hidden --- |