ASL code中要做的动作(参考ACPI spec):' x) d# s9 u/ @# _$ B- `/ {
1.OSPM decides (through a policy scheme) to place the system into a sleeping state. % @$ \* l9 j$ U D* J' c) _9 \- O2._TTS(Sx) is run, where Sx is the desired sleep state to enter. & {% I/ X. D- j1 G# o6 v& Y3. OSPM notifies all native device drivers of the sleep state transition : V; ]1 ^2 {8 S& E$ J4._PTS is run % C$ k5 U% D9 X0 Z- ?7 n7 Z6 X5 Y5.OSPM readies system for the sleep state transition # Z2 h* b# ?$ o+ z6._GTS is run 1 Q: y) T" k/ p# e( ]. f% y4 j7.OSPM writes the sleep vector and the system enters the specified Sx sleep state. ' p- Q7 L# B6 i* l# w; N2 f- c& ~8 A e3 K
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。) \; W% B; E) O' K. W( T