Re: x86, ARM, PARISC, PPC, MIPS and Sparc folks please run this

From: David S. Miller
Date: Mon Sep 01 2003 - 05:12:40 EST


On Mon, 1 Sep 2003 11:04:58 +0100
Jamie Lokier <jamie@xxxxxxxxxxxxx> wrote:

> Of course if you make mmap() return EINVAL then it cannot possible fail :)

Right :-)

> > I'd suggest instead to hardcode the SHMLBA stuff into your sources.
>
> How? SHMLBA is a run time value on the Sparc; I have no idea how
> to work it out.

You're talking about 32-bit sparc, on sparc64 it's a constant
16K.

For sparc 32-bit, just use 4MB, that's the largest possible value.

And you have to check this with uname() results, not with ifdefs
as 32-bit Sparc binaries run on sparc64 systems just fine.

I also would not object at all to a kernel patch that exported the
SHMLBA value via some sysctl value.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/