|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
]5 g9 ]3 d7 }1.OSPM decides (through a policy scheme) to place the system into a sleeping state.4 ]9 c& i: u* v; S0 Z
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
4 B, Q6 m# B/ P* [/ e. C3 p- X3. OSPM notifies all native device drivers of the sleep state transition
% U& t" p7 E( g0 a+ Y4._PTS is run! E: L9 G( S/ E) O0 u% M) s
5.OSPM readies system for the sleep state transition; o8 {, t' t5 e, _3 j" j: H
6._GTS is run
% B2 P0 u0 i, q4 q6 o7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.+ I# @# d. U0 @
' S" T( d2 e, C) R
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。6 P1 D J5 f' U9 i: N% e* ~ R% _( p
' ?6 l) F5 o* I+ ~, A& }: ~学习中............... |
|