Re: Walking all the physical memory in an x86 system

From: Alan Cox
Date: Tue Nov 30 2004 - 16:34:02 EST


On Maw, 2004-11-30 at 20:46, Jan Engelhardt wrote:
> I want(ed) to find out which I/O port to use for inb() and stuff, and using the
> BIOS's provided data. If you are referring to "ports", I could not find a
> device node, but "port" maybe:

I didn't know that was in the BIOS page.

> Oh, look what /dev/mem found! (I retried haha)

> So, /dev/mem points to "physical" mem in a sense like DOS has. (Where, the
> BIOS, is blend into, as you can see)

The kernel also preserves the low 4K because some apps, APM and the like
turned out to need it.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/