From owner-cvs-all Wed Dec 2 00:14:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA23848 for cvs-all-outgoing; Wed, 2 Dec 1998 00:14:39 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA23843; Wed, 2 Dec 1998 00:14:38 -0800 (PST) (envelope-from kato@FreeBSD.org) From: KATO Takenori Received: (from kato@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA02682; Wed, 2 Dec 1998 00:15:18 -0800 (PST) Date: Wed, 2 Dec 1998 00:15:18 -0800 (PST) Message-Id: <199812020815.AAA02682@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/i386/i386 machdep.c trap.c src/sys/pc98/conf files.pc98 src/sys/pc98/i386 machdep.c trap.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk kato 1998/12/02 00:15:18 PST Modified files: sys/i386/i386 machdep.c trap.c sys/pc98/conf files.pc98 sys/pc98/i386 machdep.c Removed files: sys/pc98/i386 trap.c Log: - For some old Cyrix CPUs, %cr2 is clobbered by interrupts. This problem is worked around by using an interrupt gate for the page fault handler. This code was originally made for NetBSD/pc98 by Naofumi Honda and has already been in PC98 tree. Because of this bug, trap_fatal cannot show correct page fault address if %cr2 is obtained in this function. Therefore, trap_fatal uses the value from trap() function. - The trap handler always enables interruption when buggy application or kernel code has disabled interrupts and then trapped. This code was prepared by Bruce Evans . Submitted by: Bruce Evans Naofumi Honda Revision Changes Path 1.317 +2 -2 src/sys/i386/i386/machdep.c 1.129 +59 -27 src/sys/i386/i386/trap.c 1.73 +2 -2 src/sys/pc98/conf/files.pc98 1.101 +1 -5 src/sys/pc98/i386/machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message