|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):- h+ L0 y: [, N* T3 w3 L$ r" t
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.! R3 ^' K0 U3 q+ N2 m/ d
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
) y3 @7 n+ K9 W7 t" O3. OSPM notifies all native device drivers of the sleep state transition3 f' F/ m) L0 X x! _7 W9 T4 P
4._PTS is run$ I1 R& A7 `' Y9 j. v
5.OSPM readies system for the sleep state transition
, Y6 I5 J# l1 X! {6._GTS is run0 F" j' s0 G$ ]4 u8 W
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.4 w* F1 N% t0 _# Q7 c. N, v
/ V' E7 t* b3 ]- U/ x& r( ~关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。. |) C/ I. F3 S9 ?' [2 m! c
2 p& X, r# d. l4 N0 i$ S) d
学习中............... |
|