This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pch] Fix largefile.c on sparc and sparc64


On Mon, Nov 08, 2004 at 02:52:53PM -0800, Richard Henderson wrote:
> On Sun, Nov 07, 2004 at 01:21:03PM -0500, Jakub Jelinek wrote:
> > > +#elif defined(__sparc__) && defined(__LP64__)
> > > +# define TRY_EMPTY_VM_SPACE    0x8000000000
> > > +#elif defined(__sparc__)
> > > +# define TRY_EMPTY_VM_SPACE    0x60000000
> 
> Where's the VM hole for sun4c?  Does this give enough room?

If I remember well, sun4c can use 0..0x20000000 and 0xe0000000..~0.
At least Linux has 0xf0000000+ reserved for kernel.
I think 0x60000000 should be ok, mmap without MAP_FIXED with
0x60000000 address at least on Linux will return first available
slot starting at 0xe0000000.
Using 0xe1000000 or something similar is bad for sun4[dm] with
more memory, as there kernel space increases and userspace
decreases.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]