From owner-acpi-jp@jp.freebsd.org  Mon Jul 23 23:59:25 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id XAA50089;
	Mon, 23 Jul 2001 23:59:25 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id XAA50084
	for <acpi-jp@jp.freebsd.org>; Mon, 23 Jul 2001 23:59:25 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1])
	by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id AAA64725
	for <acpi-jp@jp.freebsd.org>; Tue, 24 Jul 2001 00:07:06 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Message-Id: <200107231507.AAA64725@shidahara1.planet.sci.kobe-u.ac.jp>
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Mon, 23 Jul 2001 23:51:03 JST."
             <20010723235103W.iwasaki@jp.FreeBSD.org>
Date: Tue, 24 Jul 2001 00:07:06 +0900
From: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1184
Subject: [acpi-jp 1184] Re: wbinvd() required in AcpiEnterSleepState()
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: takawata@shidahara1.planet.sci.kobe-u.ac.jp

In message <20010723235103W.iwasaki@jp.FreeBSD.org>, Mitsuru IWASAKI $B$5$s$$$o$/(B
:
>> Would you flush cache by issuing wbinvd() after writing
>>  SLP_EN to PM1 register?(Before AcpiOsStall(1000000);)
>> Or ,sometimes, saved CPU state will not write to the memory and 
>> fail to recover from resume.
>
>I think we'd better to have new Osd fucntion for this purpose.
># e.g. AcpiOsFlushCaches()

wbinvd() is defined in "acgcc.h".(Though that is excluded in FreeBSD,because
the definition is conflict with "machine/cpufunc.h" .)

Takanori Watanabe
<a href="http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html">
Public Key</a>
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 



