|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):: a# ]. y- B' U
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
+ @1 \# o) i+ a0 R. h! f2._TTS(Sx) is run, where Sx is the desired sleep state to enter.4 I" F1 D8 o3 x7 v7 S8 I# r" ?
3. OSPM notifies all native device drivers of the sleep state transition+ Z" ^+ z7 K: F2 I" Z! a0 `
4._PTS is run
0 |( e0 A- b, I7 C( m4 ~5.OSPM readies system for the sleep state transition1 | b( u' N4 ^6 @; c( @0 G
6._GTS is run
* H2 q6 E+ W! @% M7 g/ B7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
/ @ U5 T2 m) K) _0 E+ l; G3 ]( l3 w+ Z/ c
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
5 L& {1 ~& N$ a" P; E
. \" t% f Z0 L/ i学习中............... |
|