|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
. T' A; f9 G- P( `1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
. G) X2 y, e& D4 E+ [2._TTS(Sx) is run, where Sx is the desired sleep state to enter.: |6 b% I) @" o1 \2 Y
3. OSPM notifies all native device drivers of the sleep state transition
( l2 ~" o0 l' r: f; X' Q4._PTS is run# e% k! `7 u) z: S
5.OSPM readies system for the sleep state transition# O. n# Q ]& U4 @+ l/ x4 I7 ]
6._GTS is run( `+ z7 D/ ^" a* [: Q6 g5 p: d1 s& x
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
Z, N# P3 ~, P/ J* Q2 g: s2 q+ Q
" f: f1 t3 i# g* y% ~/ ~% p1 i: i) _$ `" J关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
! X/ B6 [6 I2 |% ^& b/ f$ i% Z# n+ q. l7 [2 V2 s
学习中............... |
|