|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
" o( k; f' G9 y$ @1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
8 y4 r G4 `. N/ e- e7 } r( y6 L2._TTS(Sx) is run, where Sx is the desired sleep state to enter.8 B0 M! c: h9 ~; J5 ^7 \$ X
3. OSPM notifies all native device drivers of the sleep state transition
% P& w5 T2 s/ I7 Y4._PTS is run
3 x" e: U7 _9 l6 i( Y* J5.OSPM readies system for the sleep state transition$ ~6 o: {0 h. \3 Y# b1 I$ r/ t
6._GTS is run! I* m. N+ n: ?% J, u' g
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.% w# l; V) W5 Y) \
) o. ~) T7 y$ p/ g' T关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。9 w4 C/ o1 f/ Z/ |
+ E$ v4 n4 f5 _) R, \
学习中............... |
|