|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):4 r0 m% t- V& T1 Z0 i% m- h
1.OSPM decides (through a policy scheme) to place the system into a sleeping state./ o, e2 q- w- _2 G2 u: H
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
' c7 l& J0 j2 p) j' y! N% }3. OSPM notifies all native device drivers of the sleep state transition8 @8 w' J6 N* @, V; x( o' i1 K1 h4 b. }
4._PTS is run8 u$ x9 Q* z) C1 g7 b- M
5.OSPM readies system for the sleep state transition
, U( k5 m& c! u7 G6._GTS is run# A5 X# c. t3 Z
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
$ G/ |+ P$ X4 W' k9 n( U! B; J4 E1 V
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
9 y4 ?8 A' Q |& B L, A6 Q m0 t+ f; R) S, R o1 m
学习中............... |
|