[Top] [All Lists]

mmap is broken for MIPS64 n32 and o32 abis

Subject: mmap is broken for MIPS64 n32 and o32 abis
From: "Dinar Temirbulatov" <>
Date: Fri, 19 Sep 2008 10:31:29 +0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=IVAbf6lZiuQ8gIWqC461w8CMq1CV4O1SD+ULzQEKmJ8=; b=RGzUqQ42TJBGdyevdgWxBlEHuqH/GlG8+BI8OimIYSEM1rqS0cEEGUnAwha9PmQjd2 Dusup7LoiU61/jW4KiXkdIGtYMzuBxUYRl+ZxLM/HBHeL9rAWhNjLu5af8FD4TyxzBX1 lT0HYpqSQ0f94K2jH/FoA8n5wn4s4uF6VUFeg=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=DrH9M+E9WG7H4cYPFwxVuOGdudSM6gEA/boszXjxjSfyUIlgkXNrVAkphL+Ju2dXqT TbUBrcj1rYVeXWCT12kNIjigfjdGgqLE8Sa+lPoAvjCPwDKaXgFy20FSRnGq1F4cRXpB xlTXWuXDoxrawxlOjRE9UuRz00tR01v55qMkA=
Original-recipient: rfc822;
I noticed that mmap is not working properly under n32, o32 abis in
MIPS64, for example if we want to map 0xb6000000 address to the
userland under those abis we call  mmap and because the last argument
in old_mmap is off_t and this type is 64-bits wide for MIPS64, we end
up having for example 0xffffffffb6000000 address value. I am sure that
this is not a glibc issue. Following patch adds 32-bit version of mmap
and also it adds mmap64 support for n32 abi since mmap64 was
implemented correctly for n32 too.
                                          thanks, Dinar.

Attachment: mmap.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>