数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST486DX 数据表(PDF) 21 Page - STMicroelectronics

部件名 ST486DX
功能描述  PROGRAMMING MANUAL
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST486DX 数据表(HTML) 21 Page - STMicroelectronics

Back Button ST486DX Datasheet HTML 17Page - STMicroelectronics ST486DX Datasheet HTML 18Page - STMicroelectronics ST486DX Datasheet HTML 19Page - STMicroelectronics ST486DX Datasheet HTML 20Page - STMicroelectronics ST486DX Datasheet HTML 21Page - STMicroelectronics ST486DX Datasheet HTML 22Page - STMicroelectronics ST486DX Datasheet HTML 23Page - STMicroelectronics ST486DX Datasheet HTML 24Page - STMicroelectronics ST486DX Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 34 page
background image
ST486DX - SMM SOFTWARE CONSIDERATIONS
31
and restore instruction should be used. This can be accomplished by using the following code
example:
; Save the FPU state
mov
eax,CR0
or
eax,00000001h
mov
CR0,eax
;set the PE bit in CR0
jmp
$+2
;clear the prefetch que
db
66h
;do 32bit version of fnsave
fnsave [save_fpu]
;saves fpu state to
;the address DS:[save_fpu]
mov
eax,CR0
and
eax, 0FFFFFFFEh
;clear PE bit in CR0
mov
CR0,eax
;return to real mode
;now the SMM routine can do any FPU instruction.
;Restore the FPU state before executing a RSM
mov
eax,CR0
or
eax,00000001h
mov
CR0,eax
;set the PE bit in CR0
jmp
$+2
;clear the prefetch que
db
66h
;do 32bit version of fnsave
frstor [save_fpu]
;restore the FPU state
;Some assemblers may require
;use of the fnrstor instruction
mov
eax,CR0
and
eax, 0FFFFFFFEh
;clear PE bit in CR0
mov
CR0,eax
;return to real mode
Be sure that all interrupts are disabled before using this method for entering protected mode. Any
attempt to load a selector register while in protected mode will shutdown the CPU since no GDT is
set up. Setting up a GDT and doing a long jump to enter protected mode will also work correctly.
3.4
Initializing the SMM Environment
After entering SMM and saving the CPU registers that will be used by the SMM routine, a few
registers need to be initialized.
Segment registers need to be initialized if the CPU was operating in protected mode when the SMI
interrupt occurred. Segment registers that will be used by the SMM routine need to be loaded with
known limits before they are used. The protected mode application could have set a segment limit
to less than 64K. To avoid a protection error, all segment registers can be given limits of 4 GBytes.
This can be done with the SGS Thomson RSDC instruction and will allow access to the



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com