|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
1 ~4 Y- W( D( s. J+ X/ |1.OSPM decides (through a policy scheme) to place the system into a sleeping state.( ]& F% @7 S8 i( _6 d9 r
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
6 C7 h1 O3 a) d/ }3. OSPM notifies all native device drivers of the sleep state transition
0 ^8 N& k1 l! [, T; W) h4 G3 m4._PTS is run
% F/ X4 X6 M. d! q5.OSPM readies system for the sleep state transition* y$ B8 [5 ~6 s Y9 T2 W* y- u3 v
6._GTS is run N4 @+ O& q# y' Q$ z, E$ K
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
7 s( @' h2 R8 o/ L6 e3 H+ C( r$ c4 v7 ]
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
" N. u) D+ W, B8 a" i9 k
: g8 u0 a: g5 x& ?2 a5 d2 b3 ~6 o学习中............... |
|