|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):* D( |5 E! N3 [# y
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
# O6 ?" b4 D5 l* o) d2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
, P( r( e8 w7 U3. OSPM notifies all native device drivers of the sleep state transition
3 J- n b/ \/ _& L4._PTS is run% j2 y, F/ K( i- `% Z, I
5.OSPM readies system for the sleep state transition. d# D( y4 X0 L S
6._GTS is run
1 J' q" U+ i% h: B9 f7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.. S- F3 ]1 h8 K7 Y
% {* G9 q; I# U5 j- K6 [4 g关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
) c( D. d& U, z: H2 t0 E& {
D' ^8 i4 z& `( T% @+ I) E学习中............... |
|