|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
9 n8 m7 ]4 f! u% H4 z: `1.OSPM decides (through a policy scheme) to place the system into a sleeping state.7 X" M2 i) h" j6 T# i2 Z" o: k
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
9 ~8 I! U+ k$ r8 u9 L! B% |3. OSPM notifies all native device drivers of the sleep state transition; W: s( V ?; ~2 E
4._PTS is run( J$ E: n/ ]) B& O5 Q& m5 D1 h
5.OSPM readies system for the sleep state transition2 ?' S& L* z+ D7 v
6._GTS is run3 d, ]. d# S, K4 F) B$ q+ h
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.* ^9 s/ x, o$ K
+ d" b- y- G6 m9 G/ J) u关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
; \5 J6 A7 W- `' m
! w# M: a0 Y- z9 E! W学习中............... |
|