17.05.2015 Views

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

i*********************************************<br />

i****** Set SMM region to the top of memory to<br />

i****** avoid overlapping with this program<br />

i*********************************************<br />

mov aI, Ocdh<br />

out 22h, al<br />

in aI, 23h<br />

mov byte ptr [save_cd] , al<br />

mov aI, Oceh<br />

out 22h, al<br />

in aI, 23h<br />

mov byte ptr [save_ce] , al<br />

mov aI, Ocdh<br />

out 22h, al<br />

mov aI, Offh<br />

out 23h, al<br />

mov aI, Oceh<br />

out 22h, al<br />

mov aI, Oh<br />

out 23h, al<br />

mov aI, Ocfh<br />

out 22h, al<br />

in aI, 23h<br />

and aI, Ofh<br />

out 23h, al<br />

i****** flush prefetch after changing configuration<br />

jmp $+2<br />

i*********************************************<br />

i****** Execute SMM instruction svdc<br />

i*********************************************<br />

isvdc word ptr mem, ds<br />

Word ptr mem == ss: [bx]<br />

lea bx, mem<br />

db 36h Ofh 78h lfh<br />

i*********************************************<br />

i****** restore configuration registers<br />

i*********************************************<br />

mov aI, Ocdh<br />

out 22h, al<br />

mov aI, byte ptr save_cd<br />

out 23h, al<br />

mov aI, Oceh<br />

out 22h, al<br />

mov aI, byte ptr save_ce<br />

out 23h, al<br />

mov aI, Ocfh<br />

out 22h, al<br />

mov al byte ptr save_cf<br />

out 23h, al<br />

mov aI, Oclh<br />

out 22h, al<br />

mov al byte ptr save_ccrl<br />

out 23h, al<br />

Detection of SMM Capable Version<br />

A-3S

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!