|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):0 n' N3 s% f4 X% K
1.OSPM decides (through a policy scheme) to place the system into a sleeping state./ u' r* [0 u0 ?. H \+ n8 r
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.( t6 ~! H' [% e% p+ S7 F5 o! A
3. OSPM notifies all native device drivers of the sleep state transition; q2 L- F% {; B$ N) d+ A- A
4._PTS is run7 N8 g% B3 j6 t9 I1 N% T2 z
5.OSPM readies system for the sleep state transition/ _, B7 j0 L2 ?% P" F
6._GTS is run/ K, d! I3 A n
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.! v* |8 r5 g' I% e( |: u
$ l0 A$ f/ _1 m* r% c& }关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
$ L) Q# ?- [5 k
0 X! u( X, g! W$ u' ~学习中............... |
|