|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
' o' u5 `0 N! L0 \, S1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
' L# d9 [- ?4 Y" _0 W6 y2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
- }' \: g8 z; m& ] A* l: s3. OSPM notifies all native device drivers of the sleep state transition
: L+ d- p; ]4 V, D4._PTS is run
3 D! Y, R! D: @) ~" T5.OSPM readies system for the sleep state transition" j( g: x5 ]! K3 j+ |) W
6._GTS is run
9 L4 B1 M O$ I& |9 n0 ?7.OSPM writes the sleep vector and the system enters the specified Sx sleep state./ v$ f( ?6 }+ z$ `9 J
: p; R$ [- ?1 S关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
2 `* S S6 f( }+ e$ c: J% J
; p5 G8 e9 o5 P m学习中............... |
|