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

X  

ST486DX 数据表(PDF) 25 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) 25 Page - STMicroelectronics

Back Button 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 ST486DX Datasheet HTML 26Page - STMicroelectronics ST486DX Datasheet HTML 27Page - STMicroelectronics ST486DX Datasheet HTML 28Page - STMicroelectronics ST486DX Datasheet HTML 29Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 34 page
background image
ST486DX - SMM SOFTWARE CONSIDERATIONS
35
3.8
Return to HLT Instruction
To make an SMI interrupt truly transparent to the system, an SMI interrupt from a HLT instruction
should return to the HLT instruction. There are known cases with DOS software where returning
from an SMI handler to the instruction following the HLT will cause a system error. To determine
if a HLT instruction was interrupted by the SMI, the opcode from memory needs to be interrogated.
This code example describes how to determine if the current instruction is a HLT and how to
restart it.
;This is the start of specific code to check if the SMI
;occurred while in a HLT instruction. If it did, then
;return back to the HLT instruction when SMI is finished.
rsdc
fs,cs:,[seg4G]
;FS is base=0 limit=4G data
;segment to be used to check if
;HLT instruction was executing
;on a SGS Thomson part, if the SMI occurred while in a HLT
;instruction, the CURRENT IP and the NEXT IP will both
;point to the instruction following the HLT.
mov
eax,cs:dword ptr[SMI_CURRENTIP]
cmp
eax,cs:dword ptr[SMI_NEXTIP]
jne
not_hlt
;can’t be a HLT but could be
;a LOOP or REP
;load EAX with CS base from the SMM header
mov
ax,cs:word ptr [SMI_CSSELH+2]
mov
al,cs:byte ptr [SMI_CSSELH]
shl
eax,10h
mov
ax,cs:word ptr[SMI_CSSELL+2]
;calculate linear address
add
eax,cs:dword ptr [SMI_CURRENTIP]
dec
eax
;decrement to HLT instruction
mov
edx,eax
;save lin addr in edx
mov
eax,cs:dword ptr [SMI_CR0] ;check if paging on
test
eax,80000000h
je
no_paging
;if no paging then linear
;address = physical address
;set MMAC to get access to Main memory
mov
al,0c1h
out
22h,al
in
al,23h
mov
cl,al
;save old CCR1 value in cl
mov
al,0c1h
out
22h,al



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