|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):# r+ l3 z2 N# x+ `) V4 [ [
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
8 K; Q+ z7 n( \( u9 J2 w5 x5 R/ F2._TTS(Sx) is run, where Sx is the desired sleep state to enter.8 y/ s, R8 I: E% o
3. OSPM notifies all native device drivers of the sleep state transition
) P1 x6 O$ h! _6 H5 e4._PTS is run
2 m: \3 R( e. ]& t( m0 \' d5.OSPM readies system for the sleep state transition
9 ]3 L3 i& s$ n3 r; T6._GTS is run
& Q5 b! y/ ~3 I* ~% m; ]& D7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.! [& p6 d( K. M& ? E% l
1 O$ d `; I+ K# E, p' E
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
2 @8 J8 U8 {' I H* p! S, m, ~- v2 [# p, C, G/ a
学习中............... |
|