|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
" C2 h( ^1 ?# t1.OSPM decides (through a policy scheme) to place the system into a sleeping state.0 R/ v+ t1 e# E: z- G, \: o) B
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.; c8 S+ @8 y; s$ H) Q( \
3. OSPM notifies all native device drivers of the sleep state transition% c4 r2 F8 n% U4 Z" v8 ~% E$ ^
4._PTS is run
' y' o& a5 Y. V" x. c5.OSPM readies system for the sleep state transition
6 E$ b7 B( q6 N6._GTS is run# m4 L+ _3 Y4 l& w- W2 d
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
# a2 W( q5 c9 k
1 [& m! X, K5 w' R. _) D关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
: J+ J' W! G J1 R) k1 |- I$ }) P8 } s6 Y4 Z+ \4 i2 R1 q) p
学习中............... |
|