ASL code中要做的动作(参考ACPI spec):3 h& x P* o& s4 M
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.) r& @5 i6 h% u. ?2 n
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.) U9 V( b: j9 C3 ~1 _
3. OSPM notifies all native device drivers of the sleep state transition J6 {* m% p& `2 ^% X. _' a4._PTS is run/ [1 {( {5 @6 m! L/ R- M
5.OSPM readies system for the sleep state transition 0 p. s; g1 S. V- m" P7 I' G6._GTS is run 0 Q+ t9 [: Z5 H: ^# q% b7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.6 l/ [0 Y8 ~% j: R8 S7 E4 [
/ @- V3 p' X$ v z
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。 $ | L3 J7 k5 s7 B/ c+ o1 x4 R& [ \% @
学习中...............