ASL code中要做的动作(参考ACPI spec):1 }* V! ]5 K+ Q( y1 p% H/ M: Z& t3 A# J
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.% j7 o5 h% [* v6 ]1 ]: X
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.8 y8 w) Q& w8 n- w9 t
3. OSPM notifies all native device drivers of the sleep state transition; z0 K' Y3 {; R/ u V
4._PTS is run8 @" v; H; [: s3 Y
5.OSPM readies system for the sleep state transition4 N5 h+ e! l. h
6._GTS is run % K V$ s4 q" ~7.OSPM writes the sleep vector and the system enters the specified Sx sleep state." K3 G8 C A* ?9 \: Z
5 ?: v Q9 k' W+ c# H1 Y/ J- c' N( N/ e关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。1 w$ y: f+ d1 C
$ c3 P C: G4 F: f
学习中...............