|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
6 `( o2 W( t, ~! g( R1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
# z& c/ g5 z) e2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
2 ?0 _1 g/ R: d4 G4 W! \ H3. OSPM notifies all native device drivers of the sleep state transition
' U8 i+ Y3 ]1 _$ a) [9 p% e1 v4._PTS is run4 j" p8 [- H/ Z' R3 M2 j
5.OSPM readies system for the sleep state transition4 v2 @- A0 f) a' W+ P( p
6._GTS is run7 a' q% E1 [7 X. }8 e
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
! N0 [% f# p4 u2 v
8 t* e; g/ A3 M9 P+ v1 u9 P$ K* _关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。) Q" d" ?5 B3 h& D6 {1 D) ]0 a
3 c1 R4 ?0 U; M) B$ V& V学习中............... |
|