From owner-cvs-src-old@FreeBSD.ORG Mon Aug 2 17:35:21 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15F461065781 for ; Mon, 2 Aug 2010 17:35:21 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 01BB98FC22 for ; Mon, 2 Aug 2010 17:35:21 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o72HZKLD025246 for ; Mon, 2 Aug 2010 17:35:20 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o72HZKWF025245 for cvs-src-old@freebsd.org; Mon, 2 Aug 2010 17:35:20 GMT (envelope-from jkim@repoman.freebsd.org) Message-Id: <201008021735.o72HZKWF025245@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jkim@repoman.freebsd.org using -f From: Jung-uk Kim Date: Mon, 2 Aug 2010 17:35:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/acpica acpi_switch.S acpi_wakecode.S acpi_wakeup.c src/sys/amd64/amd64 cpu_switch.S genassym.c mp_machdep.c src/sys/amd64/include pcb.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2010 17:35:21 -0000 jkim 2010-08-02 17:35:00 UTC FreeBSD src repository Modified files: sys/amd64/acpica acpi_switch.S acpi_wakecode.S acpi_wakeup.c sys/amd64/amd64 cpu_switch.S genassym.c mp_machdep.c sys/amd64/include pcb.h Log: SVN rev 210777 on 2010-08-02 17:35:00Z by jkim - Merge savectx2() with savectx() and struct xpcb with struct pcb. [1] savectx() is only used for panic dump (dumppcb) and kdb (stoppcbs). Thus, saving additional information does not hurt and it may be even beneficial. Unfortunately, struct pcb has grown larger to accommodate more data. Move 512-byte long pcb_user_save to the end of struct pcb while I am here. - savectx() now saves FPU state unconditionally and copy it to the PCB of FPU thread if necessary. This gives panic dump and kdb a chance to take a look at the current FPU state even if the FPU is "supposedly" not used. - Resuming CPU now unconditionally reinitializes FPU. If the saved FPU state was irrelevant, it could be in an unknown state. Suggested by: bde [1] Revision Changes Path 1.8 +44 -51 src/sys/amd64/acpica/acpi_switch.S 1.7 +2 -2 src/sys/amd64/acpica/acpi_wakecode.S 1.33 +13 -14 src/sys/amd64/acpica/acpi_wakeup.c 1.176 +55 -90 src/sys/amd64/amd64/cpu_switch.S 1.180 +17 -22 src/sys/amd64/amd64/genassym.c 1.321 +2 -2 src/sys/amd64/amd64/mp_machdep.c 1.74 +19 -22 src/sys/amd64/include/pcb.h