ASL code中要做的动作(参考ACPI spec): 7 y1 q4 X3 N# f. e2 L+ w1.OSPM decides (through a policy scheme) to place the system into a sleeping state. : f: z7 z1 f& c& Y+ x2._TTS(Sx) is run, where Sx is the desired sleep state to enter. - @7 j7 y+ I; k. J* P3. OSPM notifies all native device drivers of the sleep state transition 7 Y5 c( z* }0 q1 J6 I2 Y4._PTS is run ) g9 u% s" i8 M" |2 C5 M7 l0 R5.OSPM readies system for the sleep state transition 0 a5 Z9 x( g. K: u" {: C6._GTS is run$ { S( T/ H: o$ o$ e
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state. 9 D1 a* V! I2 A" l9 ]6 t- M3 ]! A9 d: t& @2 m& v
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。4 c- I+ ^- P* f1 P# Q
& c8 W1 \* T7 {/ y
学习中...............