Re: Port 73h?



spamtrap@xxxxxxxxxx wrote:
Hi:

I've been looking for a source code and I find this instruction

in ax,0x73

I've been searching in the web to find what is 73 direction for but I
can't find anything.... someone could help me?

On some chipsets they have support for an alternate set of I/O
registers for doing CMOS reads/writes. These have the exact same
functionality as the ones at 70h/71h. A lot of times in BIOS we will
use them in interrupts or SMI ( system management interrupt) so that we
don't trash the result in the register. A write to 72h and a write to
70h doesn't go to the same location. So you don't have to worry about
trashing the CMOS index in 70h if you use 72h instead.

Failing scenario that these help resolve:

In the OS someone writes a 03h to 70h
Interrupt occurs
In the interrupt they write an 05h to 70h
In the interrupt they read 71h - they're getting the contents of
CMOS address 05h
Exit the interrupt
Code in OS had just written a 03h to 70h, and now
Tries to read port 71h to get the contents of 03h, but instead they
get the contents of 05h.

So in Interrupt handlers and SMI we use that a lot. There is an
additional work around that we do. You can find out what the latched
address is in 70h. We have a means through the chipset to be able to
get the value. Save it at the beginning of the interrupt handler. Do
all the CMOS accesses you want, and restore it at the end. I prefer
the first method of having ports 72h/73h. It is easier and requires
less code.

Mark Larson

.



Relevant Pages

  • Re: Port 73h?
    ... use them in interrupts or SMI so that we ... trashing the CMOS index in 70h if you use 72h instead. ... Tries to read port 71h to get the contents of 03h, ... So in Interrupt handlers and SMI we use that a lot. ...
    (comp.lang.asm.x86)
  • Re: Konica Minolta Maxxum 5D
    ... > Not to interrupt, but why would this be an issue? ... CMOS is more susceptible to electronic noise or leakage, ... I believe that CCD produces superior images, ...
    (rec.photo.digital)
  • Re: Konica Minolta Maxxum 5D
    ... > fact that it uses a CCD vs a CMOS ... Not to interrupt, but why would this be an issue? ... Prev by Date: ...
    (rec.photo.digital)
  • [git patches] libata fixes
    ... tidy host controller interrupt handling ... Target mode, for those without docs, is the ability to directly ... static inline unsigned int mv_hc_from_port ... * port is the sole input, ...
    (Linux-Kernel)
  • Weird interrupt issues with RELENG_5
    ... When I bring up the network interface, ... second IDE bus. ... WARNING - READ_DMA no interrupt but good status ... <Parallel port bus> on ppc0 ...
    (freebsd-current)