|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
8 s9 w y! z( K3 Q1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
7 d9 G5 l7 i; O6 R) |; E' X2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
' \% b5 I. S k+ N" s& B) ]9 W3. OSPM notifies all native device drivers of the sleep state transition
- H7 s0 h( j" M4._PTS is run7 l* U3 ^4 u1 y. |. T
5.OSPM readies system for the sleep state transition
( x% p/ d V2 p& {6._GTS is run
/ ~) Y4 ^. P( E2 R1 Y7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.5 U& l* \1 C& f# P% ?# E/ n
7 h# ^2 u" `$ g1 k
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
4 A3 } E2 c. `8 ~- ^# J' @, g3 m6 L0 y0 m0 d3 @0 s: ?( j
学习中............... |
|