|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):. Q2 E |7 `& [4 _
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
* \9 R' ]: ?8 J) ~ n% Y0 ]7 V2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
, d: z$ e* ]6 O9 T' Y3. OSPM notifies all native device drivers of the sleep state transition
) _ s$ b0 |5 ?1 K5 b3 s. @4._PTS is run
5 F4 x& [8 R5 ]% o% j5.OSPM readies system for the sleep state transition; {- j6 W: U; S g- m& s% z6 B2 X6 m
6._GTS is run" v1 J" }9 T% ]7 m( C0 c" G) n
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state. M. e N; m; y( Y- i& Y$ [
) R, o7 A5 l. ?, C关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。& x9 l' U) K! G
3 b( X. E2 e8 T5 c( J
学习中............... |
|