From owner-freebsd-acpi@FreeBSD.ORG Sat Jun 2 15:25:57 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CE2B1065670 for ; Sat, 2 Jun 2012 15:25:57 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id AED3D8FC0C for ; Sat, 2 Jun 2012 15:25:56 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q52FPtCl026191 for ; Sun, 3 Jun 2012 00:25:55 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Sun, 03 Jun 2012 00:25:54 +0900 (JST) Message-Id: <20120603.002554.119853142.iwasaki@jp.FreeBSD.org> To: freebsd-acpi@freebsd.org From: Mitsuru IWASAKI X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: preparation for x86/acpica/acpi_wakeup.c X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2012 15:25:57 -0000 Hi, Well I think we are ready to have x86/acpica/acpi_wakeup.c to share acpi_sleep_machdep() and acpi_wakeup_machdep() between amd64 and i386. http://people.freebsd.org/~iwasaki/acpi/x86-acpi_wakeup-20120602.diff There are no functional changes. The following is major changes. amd64: - Add suspend/resume related members in PCB. - Add suspendctx() in cpu_switch.S. - acpi_switch.S moved into cpu_switch.S as resumectx(). amd64, i386: - Add pcb_flags bit PCB_SUSPENDING to indicate AP is wakeup or not. Please review the patches, suggestions welcome. I'm going to commit this 1 week later. Thanks