|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):1 G" S7 v( \. I5 C i2 _
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.% \3 t: s" T4 u8 R5 q
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
0 R& D) n7 e- n; d7 Q3. OSPM notifies all native device drivers of the sleep state transition
/ ^ [8 `5 F& n# z- \4._PTS is run/ |" g3 B& [' G5 a8 g6 p
5.OSPM readies system for the sleep state transition
+ _5 k s" n; c( X3 [1 ^6._GTS is run E4 @! l! W5 }6 j1 i
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.4 d+ z& \6 Z* n/ S1 K
/ g3 p* u" |- M, w* r* A# w关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
3 h! Z! q1 W! C0 c$ L9 @5 O# ]% Y. r+ B3 d: s0 s
学习中............... |
|