|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):/ C6 y g8 b# [
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
# V/ M" w. T; w& J! v1 O7 T2._TTS(Sx) is run, where Sx is the desired sleep state to enter.7 ]2 s6 S- c/ a
3. OSPM notifies all native device drivers of the sleep state transition
8 P* e: A m8 |# p3 u. k9 t3 L4._PTS is run
' f& y F$ y! S' f/ h5.OSPM readies system for the sleep state transition5 {2 z% i! r! x( a" v; o- D. X
6._GTS is run1 B- i d. `3 k! W) A
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.9 C; _4 D1 }+ }- r/ m1 q8 n6 K, o; h% j
n4 d. ~- J- j& M2 N b
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。5 U; `6 K; N; _8 Z3 b$ q+ p
* ~ a0 E$ S. X8 Y v& x学习中............... |
|