|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):4 _ C( j% w) J
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
: r2 X( Y- Q# ?6 [2 k% a, _' ^) r2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
! } `' J) | C8 o8 {3. OSPM notifies all native device drivers of the sleep state transition
- i8 C1 E$ |' I+ Z' Q9 J4._PTS is run9 f1 m7 v) _7 l: Y- d4 _- _5 W7 X
5.OSPM readies system for the sleep state transition
0 x; B5 F, e' k: O4 Y8 ?6._GTS is run5 Y6 p$ L1 P# }* ?7 X% v
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.4 f8 V6 @4 k8 `! R/ k
* a; ]/ h3 W) ^* K* c- u关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
. f$ W; C% `( u" ~1 P% i. y3 J- ~. D, s( P
学习中............... |
|