|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
* O+ f, O! h$ g7 S- @& o$ i# u7 K1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
! Q; p6 O2 j" }$ H Z2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
2 k; F }- {5 f* E/ B2 Q# u3. OSPM notifies all native device drivers of the sleep state transition
3 X O, |" x3 k" Y% ~4._PTS is run; l& F8 I8 e3 t6 Y' f2 l5 Z8 g! w. d
5.OSPM readies system for the sleep state transition! v& r0 S" g+ t' v/ h {
6._GTS is run& x" W1 S+ X( n5 e! \9 E
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.* u( E! s, y7 ]4 V9 {1 }
) B1 a! e; W/ f* {/ @* w关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
4 w0 R4 X8 k/ N" ]8 ]; e" {# I# j" ^- y4 V$ c0 a
学习中............... |
|