From owner-cvs-sys Fri Jun 6 21:36:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA28821 for cvs-sys-outgoing; Fri, 6 Jun 1997 21:36:57 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA28786; Fri, 6 Jun 1997 21:36:36 -0700 (PDT) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA21703; Fri, 6 Jun 1997 21:36:11 -0700 (PDT) Date: Fri, 6 Jun 1997 21:36:11 -0700 (PDT) Message-Id: <199706070436.VAA21703@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/i386/include md_var.h pcb.h reg.h src/sys/i386/i386 genassym.c machdep.c swtch.s trap.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/06/06 21:36:11 PDT Modified files: sys/i386/include md_var.h pcb.h reg.h sys/i386/i386 genassym.c machdep.c swtch.s trap.c Log: Preserve %fs and %gs across context switches. This has a relatively low cost since it is only done in cpu_switch(), not for every exception. The extra state is kept in the pcb, and handled much like the npx state, with similar deficiencies (the state is not preserved across signal handlers, and error handling loses state). Revision Changes Path 1.14 +3 -1 src/sys/i386/include/md_var.h 1.22 +4 -2 src/sys/i386/include/pcb.h 1.15 +13 -1 src/sys/i386/include/reg.h 1.47 +3 -1 src/sys/i386/i386/genassym.c 1.247 +9 -1 src/sys/i386/i386/machdep.c 1.52 +13 -1 src/sys/i386/i386/swtch.s 1.99 +20 -1 src/sys/i386/i386/trap.c