|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):# U1 K1 j" M: x1 B' `: h8 D
1.OSPM decides (through a policy scheme) to place the system into a sleeping state./ ]5 H) a' o# k) p0 r: q
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
% t# @3 `; I ]! @3 j+ {2 ^3. OSPM notifies all native device drivers of the sleep state transition
$ { \. l4 K) O8 w+ {+ x% N4._PTS is run. o9 V9 B8 |7 i$ a, k' N
5.OSPM readies system for the sleep state transition/ }; q5 S0 u$ o( X1 s" a# ]
6._GTS is run: m! Z) o1 b7 @/ @
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state., O5 N- j: t5 I6 f
( T* U s! D3 F% o2 N: {
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
) e5 w/ |* S. m: P2 ^& M& v" T3 O# I- w. I, q$ [
学习中............... |
|