ASL code中要做的动作(参考ACPI spec): ; z$ f3 ]7 O4 C( ~' M7 `1.OSPM decides (through a policy scheme) to place the system into a sleeping state.0 e6 T9 h" R4 v& _) [! j# Q! Z& i4 W
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.0 ^! @# D' l0 x$ e. u) v: g0 N3 a0 _
3. OSPM notifies all native device drivers of the sleep state transition1 o9 ?2 H/ h* h- K
4._PTS is run" a: S6 }4 W% A9 r! `/ h+ Y
5.OSPM readies system for the sleep state transition 3 k; W' U8 c: C6._GTS is run . c$ ]+ k( G8 G$ Y d7 E7.OSPM writes the sleep vector and the system enters the specified Sx sleep state. 0 n% Q( n" n* Z5 h( {. q& j1 s) M) n; p1 O) b9 {
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。$ B0 A: C# P8 d% y8 |! m& y