|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):7 m9 O5 _: s4 O7 S' |" u0 E
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.+ I3 N( R% k! I2 k5 L1 c
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
6 e( }: \- ^8 e3. OSPM notifies all native device drivers of the sleep state transition) @$ @2 ^' i2 L T4 J
4._PTS is run
7 w8 l$ L5 J9 ~% u; Q4 A5 L5.OSPM readies system for the sleep state transition
7 C6 R# n) C+ N' W* H: G F# P% H6._GTS is run
: `0 z7 I4 U z( m9 C7.OSPM writes the sleep vector and the system enters the specified Sx sleep state. f9 {0 s; M* ^# p9 e
% ^- P2 u, ~" d: a5 q2 U
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。9 v& S8 U3 j5 s O) `/ @' {
8 X% W& _( ~; m9 _学习中............... |
|