|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):$ c, ]; ~& |! Z& A* n, a1 U
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.& t2 J W; R9 I% s! S& E; @
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
8 S9 M9 v1 ^- u3. OSPM notifies all native device drivers of the sleep state transition
7 f$ B8 l r+ r3 y! D, _4._PTS is run
% t" b* u+ D& h! ]1 r# _5.OSPM readies system for the sleep state transition& S) L, F. f" _
6._GTS is run6 W5 x, e9 z2 M
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.0 N0 h! ]- `; E
0 z% g7 t9 ~; B7 R+ @# S# d关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。" i* k& e/ i9 }! t
1 ]& X( [+ y9 [3 A/ T# C- V) M
学习中............... |
|