|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):1 B6 w: O* f' P' v: o, _# D6 x
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
$ v- B% c9 F' z# c2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
@" y7 J5 l5 W+ w4 t3. OSPM notifies all native device drivers of the sleep state transition
; J& K) u& k; ^4._PTS is run$ B4 O$ ?% f' U5 |$ D. Y7 ~0 _
5.OSPM readies system for the sleep state transition
" @7 ?8 P1 U! c/ I2 o' P* B6._GTS is run* O7 f' z+ b% j# ~- u
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
2 d+ Y( e$ T6 k9 i. T7 _0 |- k& R7 R9 I
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
) q# C7 e; m; A
! B, P, L7 R; e学习中............... |
|