|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):7 V( q B1 p; f* R
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.5 ]) [+ h& v) n
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.$ @: A( z5 f2 A7 d( }
3. OSPM notifies all native device drivers of the sleep state transition) ~% T' a l6 ]
4._PTS is run; A' @& x! A4 b! y/ }
5.OSPM readies system for the sleep state transition
E- F' T" g% q" T3 E& S6._GTS is run, \* r( W4 h+ g6 G
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.; p; ^6 D6 d# i5 f5 |
& x5 @& S' f; J# X# c* u$ Y关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。9 ~, w; y0 w$ ?1 Q* U4 k7 C4 N8 s- V
; e! q! u. ^# ?2 K. t学习中............... |
|