From owner-cvs-all Wed Mar 21 12: 9:25 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BD7A837B735; Wed, 21 Mar 2001 12:09:20 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2LK8C613667; Wed, 21 Mar 2001 12:08:12 -0800 (PST) (envelope-from jhb) Message-Id: <200103212008.f2LK8C613667@freefall.freebsd.org> From: John Baldwin Date: Wed, 21 Mar 2001 12:08:08 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/i386/btx/btx btx.s X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/03/21 12:08:08 PST Modified files: sys/boot/i386/btx/btx btx.s Log: Always disable paging when exiting back to real mode after receiving a fatal trap. Also, reload the GDT register to point to BTX's GDT before playing around with the segment registers to return to real mode. This is helpful if the kernel causes a fatal exception before it has setup its own IDT and fault handlers. For example, if one happens to break mtx_init(). Without these changes BTX would recursively page fault (if paging was not disabled) or triple fault and reset the CPU (without the GDT reload) instead of providing a potentially useful register dump. Reviewed by: rnordier Revision Changes Path 1.24 +5 -5 src/sys/boot/i386/btx/btx/btx.s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message