|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
J L; {# |$ e* U1.OSPM decides (through a policy scheme) to place the system into a sleeping state.2 P; _- i8 b' Z
2._TTS(Sx) is run, where Sx is the desired sleep state to enter." {! f& @! ^( A, L5 M% W
3. OSPM notifies all native device drivers of the sleep state transition
( W& `4 m B9 `4._PTS is run' {2 u' }* D5 ^( `
5.OSPM readies system for the sleep state transition$ e3 O# A" c) g
6._GTS is run0 s& n3 D/ }9 }
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
$ _! F/ o) t: |) M& \# R( `% P& j, ~
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。3 K3 `- R3 p; z1 f! B
. Z/ p/ W/ r# d) ]+ T学习中............... |
|