| To: | Dinar Temirbulatov <dtemirbulatov@gmail.com> |
|---|---|
| Subject: | Re: mmap is broken for MIPS64 n32 and o32 abis |
| From: | "Maciej W. Rozycki" <macro@linux-mips.org> |
| Date: | Fri, 19 Sep 2008 18:25:45 +0100 (BST) |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <a664af430809190953k486e2012hf3a09caa50c9574a@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <a664af430809182331i41c9e344w83ecb2830ac24@mail.gmail.com> <Pine.LNX.4.55.0809191329080.29711@cliff.in.clinika.pl> <a664af430809190953k486e2012hf3a09caa50c9574a@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Fri, 19 Sep 2008, Dinar Temirbulatov wrote: > mmptr = (unsigned short *)mmap((void *)0, 0x1000, > PROT_READ | PROT_WRITE, MAP_SHARED, > mmh, 0xb6000000); Ah, so it is the file offset you are concerned about. Fair enough then. Obviously the non-LFS 32-bit variation has to sign-extend the offset as this is how the off_t type has been defined in this case, though it is interesting to note that the kernel treats this argument as unsigned while the C library API defines it as signed and there is no range checking in between. Hmm... Maciej |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/2] ide: Add tx4939ide driver (v2), Bartlomiej Zolnierkiewicz |
|---|---|
| Next by Date: | Re: MIPS checksum bug, Maciej W. Rozycki |
| Previous by Thread: | Re: mmap is broken for MIPS64 n32 and o32 abis, Dinar Temirbulatov |
| Next by Thread: | Re: mmap is broken for MIPS64 n32 and o32 abis, Dinar Temirbulatov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |