|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):/ \5 {; y$ V9 d* d5 {4 m3 W; t9 A
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
+ R/ w2 q# `) I0 k2._TTS(Sx) is run, where Sx is the desired sleep state to enter. w6 u. _; ], e7 a* r/ e
3. OSPM notifies all native device drivers of the sleep state transition
+ Z, @4 ?# E P, f v0 X1 q4._PTS is run
2 _# Y3 {! J- _2 V5.OSPM readies system for the sleep state transition
; y% D |8 @, J1 q: z0 v1 L6._GTS is run' q5 f8 @) R1 a2 O5 W
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.* P1 k6 m# W, s; @/ P6 q/ u0 X
! ]( W/ Z( F$ ]关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
2 u/ Q: n) o3 O) `! C3 H6 F( s& b& B8 P1 b- S! h8 M2 z& c
学习中............... |
|