Re: infos on /dev/mem
- From: gil_hamilton@xxxxxxxxxxx
- Date: 24 Jul 2006 03:58:35 -0700
Georg Acher wrote:
Unfortunately, /dev/mem represents not the physical memory space as a CPU without
MMU would see it. It covers only the lower 16MB. The remaining RAM is not
accessible and mapped to a null page. If you limit the memory at boot time with
the "mem=xxx" option, the unused memory above the xxx is accessible again.
However, the PCI memory mapped IO can always be accessed by /dev/mem.
This isn't the case with the several kernels I am looking at (including
at least three 2.6 versions and a couple of 2.4 versions), all of which
allow mapping of arbitrary physical addresses. Are you perhaps looking
at code that is specific to a particular architecture?
The mem=xxx specification merely redefines what is considered the top
of ordinary memory and hence affects only the "page protection" bits
with which the memory is accessed, usually by mapping pages above that
point uncached.
GH
.
- Follow-Ups:
- Re: infos on /dev/mem
- From: Georg Acher
- Re: infos on /dev/mem
- References:
- infos on /dev/mem
- From: steve
- Re: infos on /dev/mem
- From: gil_hamilton
- Re: infos on /dev/mem
- From: Georg Acher
- infos on /dev/mem
- Prev by Date: Re: Does my processor have local APIC?
- Next by Date: Linked Lists - Some doubts
- Previous by thread: Re: infos on /dev/mem
- Next by thread: Re: infos on /dev/mem
- Index(es):
Relevant Pages
|
|