|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
; }7 g7 a1 M+ T( @" Y1.OSPM decides (through a policy scheme) to place the system into a sleeping state.) v# E$ t/ Q3 P6 W
2._TTS(Sx) is run, where Sx is the desired sleep state to enter. g: d/ f7 A" S; s
3. OSPM notifies all native device drivers of the sleep state transition
6 O' P v W# u! @4._PTS is run- H7 }8 ]/ Q+ x9 t) j+ R! N
5.OSPM readies system for the sleep state transition9 g- s! H5 {2 g/ P6 w% e1 j
6._GTS is run& o! i' ` {/ v3 q q+ J8 Y
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
" k- J7 _, `' `2 n2 ]& L2 c! o- n, }1 A! L
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。0 D8 h9 y3 i: U
% j9 \0 N( D" r+ c* K
学习中............... |
|