|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):2 B* n% C. b2 d; ]) ~7 I+ G' @6 [
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.! \, s- U6 R0 T* h4 S- A
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
. p& K, s6 U+ }3 i3. OSPM notifies all native device drivers of the sleep state transition- ]/ h% ^4 K/ I/ ?* m5 T& b0 m
4._PTS is run
6 T K+ A2 e' n- n: u$ a! X M5.OSPM readies system for the sleep state transition
7 ?; h2 F- {" v% c# ~, }- h. \6._GTS is run
/ M) }$ ]% G% a3 C( s0 |' F) O3 K7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.; @' R i( [. c- e0 [- z
" H0 d/ s6 U6 b% j* k3 a
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。1 x- V7 [9 b( a; C8 P
) L2 G& k4 g- p1 B% ?
学习中............... |
|