bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mmap64 for PA


From: Ulrich Drepper
Subject: Re: mmap64 for PA
Date: 19 Apr 2001 21:54:24 -0700
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Thelxepeia)

address@hidden (Matthew Wilcox) writes:

> Would you like a patch for powerpc/mmap64.c then?
> 
> #ifdef __NR_mmap2
>   if (
> # ifndef __ASSUME_MMAP2_SYSCALL
>       ! have_no_mmap2 &&
> # endif
>       ! (offset & ((1 << PAGE_SHIFT)-1)))
>     {

Well, yes, the code is not optimal.  Let me change it a bit...  (a
little bit later) ... done.  Please try this version.  I haven't
compiled it myself (yet).

> the kernel hardcodes 12-bits as the `page size' presented to mmap2,
> just as sparc32 does.  in fact only PA2.0 can have page sizes other
> than 4k, and all pa 2.0 processors can be run in 64-bit mode, so mmap2
> becomes irrelevant.

Well, this doesn't mean that nobody wants to run PA2.0 in 32-bit mode.
If you say the kernel will never support it, fine.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]