subr_syscall.c (71785) | subr_syscall.c (72091) |
---|---|
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 * $FreeBSD: head/sys/kern/subr_trap.c 71785 2001-01-29 09:38:39Z peter $ | 38 * $FreeBSD: head/sys/kern/subr_trap.c 72091 2001-02-06 11:21:58Z asmodai $ |
39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_clock.h" 46#include "opt_cpu.h" --- 881 unchanged lines hidden (view full) --- 928 sdtossd(&gdt[IDXSEL(frame->tf_cs & 0xffff)].sd, &softseg); 929 930 if (type <= MAX_TRAP_MSG) 931 printf("\n\nFatal trap %d: %s while in %s mode\n", 932 type, trap_msg[type], 933 frame->tf_eflags & PSL_VM ? "vm86" : 934 ISPL(frame->tf_cs) == SEL_UPL ? "user" : "kernel"); 935#ifdef SMP | 39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_clock.h" 46#include "opt_cpu.h" --- 881 unchanged lines hidden (view full) --- 928 sdtossd(&gdt[IDXSEL(frame->tf_cs & 0xffff)].sd, &softseg); 929 930 if (type <= MAX_TRAP_MSG) 931 printf("\n\nFatal trap %d: %s while in %s mode\n", 932 type, trap_msg[type], 933 frame->tf_eflags & PSL_VM ? "vm86" : 934 ISPL(frame->tf_cs) == SEL_UPL ? "user" : "kernel"); 935#ifdef SMP |
936 /* two seperate prints in case of a trap on an unmapped page */ | 936 /* two separate prints in case of a trap on an unmapped page */ |
937 printf("cpuid = %d; ", PCPU_GET(cpuid)); 938 printf("lapic.id = %08x\n", lapic.id); 939#endif 940 if (type == T_PAGEFLT) { 941 printf("fault virtual address = 0x%x\n", eva); 942 printf("fault code = %s %s, %s\n", 943 code & PGEX_U ? "user" : "supervisor", 944 code & PGEX_W ? "write" : "read", --- 66 unchanged lines hidden (view full) --- 1011void 1012dblfault_handler() 1013{ 1014 printf("\nFatal double fault:\n"); 1015 printf("eip = 0x%x\n", PCPU_GET(common_tss.tss_eip)); 1016 printf("esp = 0x%x\n", PCPU_GET(common_tss.tss_esp)); 1017 printf("ebp = 0x%x\n", PCPU_GET(common_tss.tss_ebp)); 1018#ifdef SMP | 937 printf("cpuid = %d; ", PCPU_GET(cpuid)); 938 printf("lapic.id = %08x\n", lapic.id); 939#endif 940 if (type == T_PAGEFLT) { 941 printf("fault virtual address = 0x%x\n", eva); 942 printf("fault code = %s %s, %s\n", 943 code & PGEX_U ? "user" : "supervisor", 944 code & PGEX_W ? "write" : "read", --- 66 unchanged lines hidden (view full) --- 1011void 1012dblfault_handler() 1013{ 1014 printf("\nFatal double fault:\n"); 1015 printf("eip = 0x%x\n", PCPU_GET(common_tss.tss_eip)); 1016 printf("esp = 0x%x\n", PCPU_GET(common_tss.tss_esp)); 1017 printf("ebp = 0x%x\n", PCPU_GET(common_tss.tss_ebp)); 1018#ifdef SMP |
1019 /* two seperate prints in case of a trap on an unmapped page */ | 1019 /* two separate prints in case of a trap on an unmapped page */ |
1020 printf("cpuid = %d; ", PCPU_GET(cpuid)); 1021 printf("lapic.id = %08x\n", lapic.id); 1022#endif 1023 panic("double fault"); 1024} 1025 1026/* 1027 * Compensate for 386 brain damage (missing URKR). --- 287 unchanged lines hidden --- | 1020 printf("cpuid = %d; ", PCPU_GET(cpuid)); 1021 printf("lapic.id = %08x\n", lapic.id); 1022#endif 1023 panic("double fault"); 1024} 1025 1026/* 1027 * Compensate for 386 brain damage (missing URKR). --- 287 unchanged lines hidden --- |