|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):. T6 a; ^, X5 b; a9 P( ^+ G- J3 D
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.$ d, t4 r- |5 e0 D) S
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
8 w3 T; H% ~9 D, Y/ k' p. p3. OSPM notifies all native device drivers of the sleep state transition
- f5 |9 {% N' D6 E/ u, V/ A4._PTS is run* |8 U9 A+ Y, d, @6 T" ~& Q/ h
5.OSPM readies system for the sleep state transition
" n% T, k! J: s/ f+ H+ X$ J6._GTS is run; u" ], A- ^1 P2 X6 `+ x' |
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.0 U! L; e* F# i) c& X' U
. y% f* G9 d( C4 X U6 f/ f0 O2 B关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
7 m2 o- }8 ^, P: Q- ^+ G# g
& I- H; I) F5 R$ g学习中............... |
|