|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
- v5 `; h! B# o# R1.OSPM decides (through a policy scheme) to place the system into a sleeping state.1 L; d$ u! G, t) Q, A3 u
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
/ l/ c# p! ?, j% I* W' @# x9 Q3. OSPM notifies all native device drivers of the sleep state transition3 ] H- E# H5 M$ `. ~6 { H0 [& E ~' ?
4._PTS is run9 a6 b8 g! b7 L. n8 F
5.OSPM readies system for the sleep state transition
9 E; l% q! R; X3 A1 H( S1 s6._GTS is run
9 p+ F* \1 Z$ B+ w& N. ~* a3 b4 T7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.
( W, T3 M! V1 P6 I! a, e2 `% ^! f/ k/ Y, k1 Z. T E
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
- m, ~. J: r$ F+ W a+ |
. d+ d- N4 p0 x5 I6 a4 j学习中............... |
|