* [Linux-ia64] mmap failure
@ 2003-05-27 19:55 Ronald Veldema
2003-05-27 20:34 ` Luck, Tony
2003-05-27 20:38 ` David Mosberger
0 siblings, 2 replies; 3+ messages in thread
From: Ronald Veldema @ 2003-05-27 19:55 UTC (permalink / raw)
To: linux-ia64
Hi all,
it looks like mmap fails when calling mmap as:
mmap(0x30000066910000,
16384,
PROT_READ | PROT_WRITE,
MAP_FIXED,MAP_PRIVATE,
fd,0x30000066910000);
Other addresses are ok. It fails with EINVAL.
Is 0x30000... reserved for the kernel ?
R.
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [Linux-ia64] mmap failure
2003-05-27 19:55 [Linux-ia64] mmap failure Ronald Veldema
@ 2003-05-27 20:34 ` Luck, Tony
2003-05-27 20:38 ` David Mosberger
1 sibling, 0 replies; 3+ messages in thread
From: Luck, Tony @ 2003-05-27 20:34 UTC (permalink / raw)
To: linux-ia64
> it looks like mmap fails when calling mmap as:
>
> mmap(0x30000066910000,
> 16384,
> PROT_READ | PROT_WRITE,
> MAP_FIXED,MAP_PRIVATE,
> fd,0x30000066910000);
>
> Other addresses are ok. It fails with EINVAL.
> Is 0x30000... reserved for the kernel ?
0x30000066910000 is too far from a region boundary.
Although Itanium 2 supports a full 64-bit virtual
address space, Linux can't map objects to any place
in the 64-bit range because with a 3-level page
table it can't use all of the address bits.
The areas that can be mapped by Linux are at the
bottom and top of each Itanium "region" (top three
bits of the virtual address are the region number).
-Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] mmap failure
2003-05-27 19:55 [Linux-ia64] mmap failure Ronald Veldema
2003-05-27 20:34 ` Luck, Tony
@ 2003-05-27 20:38 ` David Mosberger
1 sibling, 0 replies; 3+ messages in thread
From: David Mosberger @ 2003-05-27 20:38 UTC (permalink / raw)
To: linux-ia64
>>>>> On Tue, 27 May 2003 21:55:05 +0200, Ronald Veldema <veldema@cs.fau.de> said:
Ronald> Hi all, it looks like mmap fails when calling mmap as:
Ronald> mmap(0x30000066910000, 16384, PROT_READ | PROT_WRITE,
Ronald> MAP_FIXED,MAP_PRIVATE, fd,0x30000066910000);
Ronald> Other addresses are ok. It fails with EINVAL. Is
Ronald> 0x30000... reserved for the kernel ? R.
No, but it's not mappable by the Linux kernel.
The details are in the VM chapter of my book (Figure 4.13, in
particular). If you don't want to buy the book just because of this,
you're in luck: the VM chapter happens to be the sample chapter
available at:
http://www.lia64.org/book/
Hope this helps,
--david
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-27 20:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-27 19:55 [Linux-ia64] mmap failure Ronald Veldema
2003-05-27 20:34 ` Luck, Tony
2003-05-27 20:38 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox