|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
$ R1 S8 j) e. L, o: M6 b1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
5 ^3 @" X' `/ W) i2._TTS(Sx) is run, where Sx is the desired sleep state to enter.+ @4 w, S" H5 a. P2 }$ r
3. OSPM notifies all native device drivers of the sleep state transition: o6 d6 u- p; Z, r+ g) d
4._PTS is run
/ H+ C$ p+ J5 Y/ @% q) ^* e9 r( ^/ A5.OSPM readies system for the sleep state transition
) G6 v: i5 x; H, I9 S* O6._GTS is run
1 V& F/ n& U+ Z4 d' N% h9 p. O2 U7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
: T" f/ b& `8 I: g; P
' E, _5 y& M2 ^5 j! ]关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。* A; j- p6 X S: D4 K6 b- G F
6 \. n3 j1 Q( P- c V0 W$ X0 p- E学习中............... |
|