|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec): n. y: }' c k4 H
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.6 X/ ?; Q' Q4 ^/ A) x0 t7 |
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
$ v& p8 v0 Y1 U3. OSPM notifies all native device drivers of the sleep state transition
4 I# N+ I7 ~' k/ C1 p8 x/ x1 Y4._PTS is run& c( _9 W2 w! G" R8 N: t
5.OSPM readies system for the sleep state transition
. ?6 g/ W' H8 {- _1 {. H6._GTS is run5 y2 |, q, ]2 R- ^2 d4 t5 a2 T, L
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.. Z- l# s3 P! E
1 H8 K/ Z, D* x6 w0 `
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。' k6 i& i: T3 @2 I$ I6 o d \
) E2 |8 }6 H9 k: @ Y, L学习中............... |
|