ASL code中要做的动作(参考ACPI spec):4 ~+ K' o$ w/ r% r8 c
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.% ?1 o2 P' S% ~9 Z" G$ ~2 F4 o
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.) T" d2 @: D/ a; [/ Q8 N
3. OSPM notifies all native device drivers of the sleep state transition t0 G t1 |1 n) L! `
4._PTS is run) R- y8 _& p1 I" t; C; u6 h! u5 s
5.OSPM readies system for the sleep state transition - K# d; |" b1 Q) v' g* G/ e0 v; |6._GTS is run ( P( \; b& N# x6 i" v; P7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.. m7 D4 B; c K* G7 z
4 w. ^ g+ V/ \6 S% O! g8 D' m+ E关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。% _% h+ f4 C7 v2 {3 p
$ P; E3 s! c0 [* P) u3 H" H
学习中...............