|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
& S; m" I- K. g% {- K: Y# K, J1.OSPM decides (through a policy scheme) to place the system into a sleeping state., [5 J) e6 F# h! t# r# O
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.+ N2 o" K5 g0 U3 S) {: d
3. OSPM notifies all native device drivers of the sleep state transition
% k) I( {8 i+ C! A; R( q* |4._PTS is run8 U5 e! z$ ]: X- `, d4 E
5.OSPM readies system for the sleep state transition
y. G; @+ p7 ]$ ?6._GTS is run
/ a l" c, `% \& i3 R7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
! @# H. g( n7 l* a1 S+ M: U( P. s: a& W
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。6 t) s8 z/ V! A; }& Y+ w
+ k# x6 r) ?$ @学习中............... |
|