Skip to contentSkip to conversation

question: i/o port 0x61 on x86 archs

DISCUSSION Ravikiran G Thirumalai 4 participants 5 messages Jun 8, 2002 – Jun 12, 2002

lore
Share & tools
lore
#0 lore raw

I have a question regdg do_nmi routine in x86; what does location 0x61 from inb(0x61) do? Is it something very well known in intel archs?

Kiran

#1 lore raw

On Sat, 8 Jun 2002, Ravikiran G Thirumalai wrote:

| I have a question regdg do_nmi routine in x86; what does location 0x61 | from inb(0x61) do? Is it something very well known in intel archs?

Yes, see any Intel PIIX or ICH chipset spec. I'm looking at the 82801BA I/O Controller Hub 2 (ICH2) spec., section 9.7.1.

Port 0x61 is the NMI status and control register.

Signature · 1 line
~Randy
#2 lore raw
In reply to Ravikiran G Thirumalai
Quoted 4 lines · Randy Dunlap

On Sat, 8 Jun 2002, Ravikiran G Thirumalai wrote:
| I have a question regdg do_nmi routine in x86; what does location 0x61 | from inb(0x61) do? Is it something very well known in intel archs? Port 0x61 is the NMI status and control register.

So it should exist a '#define' for this somewhere.

People who tend to disagree here, may try to use *.i files instead of *.c and *.h files next time.

The IRQ-handling code is full of these beauties and several drivers are too.

Regards

Ingo Oeser

Signature · 1 line
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
#3 lore raw
Quoted 6 lines · Ingo Oeser
Quoted 1 line

Port 0x61 is the NMI status and control register.

So it should exist a '#define' for this somewhere.

People who tend to disagree here, may try to use *.i files instead of *.c and *.h files next time.

Feel free to submit a patch.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#4 lore raw

On Wed, 12 Jun 2002, Maciej W. Rozycki wrote:

| On Wed, 12 Jun 2002, Ingo Oeser wrote:
|
| > > Port 0x61 is the NMI status and control register.
| >
| > So it should exist a '#define' for this somewhere.
| >
| > People who tend to disagree here, may try to use *.i files
| > instead of *.c and *.h files next time.
|
|  Feel free to submit a patch.

I say "please submit a patch."
I very much dislike such inline constants
(for register offsets and register bits).

Signature · 1 line
~Randy