|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):- }; Y2 X! }4 B, {
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
; y5 B- d$ N6 p# y7 b2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
& d, v0 j! n; i. z4 s3 \# y3. OSPM notifies all native device drivers of the sleep state transition
6 }6 l9 o2 F" r7 i0 D3 B; ?4._PTS is run
3 Y7 I8 P( e1 i, K5.OSPM readies system for the sleep state transition
: k) Y" _ o; a+ J' u n& b6._GTS is run1 R; _8 [% f" `% W) P: Y* W0 _, \
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
$ W5 P U5 {8 N) [8 N; ^
( u+ U" A& x& o- `# ]关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
, B+ V/ E& ^2 a7 h1 B
" m& G' _% R. T5 h! j }6 P. k学习中............... |
|