|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):0 B. M* l4 V% W/ n
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.4 ?% ]3 J9 j9 o, ` ?+ s
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
6 M7 _6 m$ c4 t: d* V I3. OSPM notifies all native device drivers of the sleep state transition' G+ k. u ]! T$ _/ C
4._PTS is run
0 F% K. B3 k9 }& c9 \0 |, }7 N+ k- X5.OSPM readies system for the sleep state transition
) t2 E% t, ?6 x9 j6._GTS is run; ~+ f# v0 U" x6 q
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.. k4 m1 ?* U0 f; ?
: v, R# k1 z, e# H
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
$ D; M" y& i" q3 K: w. }- v Y" _. G% g2 I3 \
学习中............... |
|