Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

ST486DX Scheda tecnica(PDF) 21 Page - STMicroelectronics

Il numero della parte ST486DX
Spiegazioni elettronici  PROGRAMMING MANUAL
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST486DX Scheda tecnica(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


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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