|
|
发表于 2008-10-22 17:58:08
|
显示全部楼层
ASL code中要做的动作(参考ACPI spec):
- B2 |/ L% T& M1.OSPM decides (through a policy scheme) to place the system into a sleeping state.
! l* Z% W! m& K, v0 a. G2._TTS(Sx) is run, where Sx is the desired sleep state to enter.
' v% r, g6 A( V' U' y% m Y1 [3. OSPM notifies all native device drivers of the sleep state transition3 _" q& ]# n9 |9 x
4._PTS is run4 D3 i1 {6 v( K) s6 u
5.OSPM readies system for the sleep state transition
" ~4 k! p6 Y, O( m& J! z6._GTS is run* S0 \9 ]' s, h( j X0 s: A
7.OSPM writes the sleep vector and the system enters the specified Sx sleep state.- i2 J$ `5 W9 A' R6 T
4 X, l& g$ K2 O关于asm中要根据需要保存一些唤醒时需要的信息,比如:PC-AT 兼容性寄存器,GPIO状态,lan唤醒等。
8 t; n1 W' a- G( ]4 U2 D
9 C9 H+ K( \+ t u6 w8 k学习中............... |
|