|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):2 C* E4 {# v$ m$ P7 ?, W% O
1.OSPM decides (through a policy scheme) to place the system into a sleeping state./ u7 \9 L9 }0 p6 F0 L* `
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
, o4 H- h/ j- }6 r) n3 F3. OSPM notifies all native device drivers of the sleep state transition/ v4 t$ e! |# X4 u9 h3 h+ E2 O
4._PTS is run
! c0 G* b5 ?1 }# J( Z* i5.OSPM readies system for the sleep state transition8 S6 [3 _- h0 Y0 I4 E
6._GTS is run; d% @1 ^! r2 C* P- q
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.5 @/ v- }& y7 b8 Q
/ D% H# ?9 u6 o2 Z$ Q" u' s关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。( W% }$ q" w* }6 z) m1 D' E
; i# V6 M' N/ b* n6 v. K7 h, M学习中............... |
|