|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
. d( ~' `: K% Z1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
1 Y* s9 b! K. A7 d9 k& e; F2 K2._TTS(Sx) is run, where Sx is the desired sleep state to enter.9 P8 Q( t5 \0 |
3. OSPM notifies all native device drivers of the sleep state transition
% W: }$ O9 \, L Z4._PTS is run- M$ p1 M) W* s6 P6 o9 D% j
5.OSPM readies system for the sleep state transition9 j/ {% n9 i: y2 J9 I5 }
6._GTS is run
) Z. M9 o, H0 R8 Q% N ^6 c/ E* [7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.4 y, {+ x. u8 k
$ y3 t8 Q3 c1 N, o: I- L0 S7 X关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。' j. d, q: P4 N/ o: b
- [9 ~& z" a2 Y6 A* O1 }学习中............... |
|