|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
7 }; C2 p* j: m0 u- N* ~# w7 K0 p1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
+ I, k0 l& L+ _% u2._TTS(Sx) is run, where Sx is the desired sleep state to enter.! |7 r7 N( U: a; {8 f
3. OSPM notifies all native device drivers of the sleep state transition
: L# X5 v% w6 B" a4 t! Q4._PTS is run
* m$ T M/ |. r. s. J9 P5.OSPM readies system for the sleep state transition
' V o- J" d8 e* p- b6._GTS is run
4 @' H, U% O" ~& n7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
3 l$ | P2 D7 o4 c V
! X+ H P. B B9 P. R( o8 n关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。6 @$ g) s, |+ |9 F* g$ d3 {
, z# s% ]1 S9 R" V. i* `2 \# [
学习中............... |
|