ASL code中要做的动作(参考ACPI spec): 1 v# R t3 t' ^( L m# ?; ~1.OSPM decides (through a policy scheme) to place the system into a sleeping state. 7 N3 D5 l+ L/ C; z2._TTS(Sx) is run, where Sx is the desired sleep state to enter.- Q- R/ |5 I- v8 g6 s
3. OSPM notifies all native device drivers of the sleep state transition : a( {) L" O/ t+ Q# n4._PTS is run% @+ v% O5 t2 ^* Z% |: @( n
5.OSPM readies system for the sleep state transition & n& g4 N! x( N8 _( C5 p% l6._GTS is run( B( ]# w% P1 y; [
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.5 F7 p4 b3 l. b
2 V" E1 r2 G; f1 {# b! {关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。 ; }: |+ `1 u8 C2 s! I 3 N# t- R. q6 Z# e H学习中...............