|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):5 k7 Z# [; Z' @2 ?3 |* S6 |7 b
1.OSPM decides (through a policy scheme) to place the system into a sleeping state.5 m- O$ w E& z1 E' c7 F; @6 `+ s
2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
- `9 |! M8 g2 K3. OSPM notifies all native device drivers of the sleep state transition
. C* N8 }) I3 n$ V3 i- u3 {& U6 w. `4._PTS is run
/ ?7 D8 p: {/ L' T# A# [5.OSPM readies system for the sleep state transition
% o1 g% e, L$ Y/ j' X4 z6._GTS is run
; r7 h# m9 @" z4 p6 Y7.OSPM writes the sleep vector and the system enters the specified Sx sleep state." ]. o) H# I% H6 c7 S
k# P5 _/ S1 v2 I# z2 `
关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
) D9 }0 F4 x! t0 g! Y5 R" T+ g; A+ V1 m. V
学习中............... |
|