This is the mail archive of the
mailing list for the GCC project.
Re: Call for testers: libiberty/physmem.c
On Fri, Feb 21, 2003 at 06:58:43PM +0100, Gerald Pfeifer wrote:
> On Fri, 21 Feb 2003, Krzysztof Parzyszek wrote:
> > Here is a sample code that works on FreeBSD-STABLE. The values returned
> > by sysctl are said to be in bytes and so I don't know what happens when
> > you have >= 2G of available memory.
> With the patch at the end, it works as expected:
[patch changes `int' to `unsigned int']
Funny thing is that the variable from which (I believe) the hw.physmem
is extracted was declared as `int' in the kernel.
I looked at /usr/src/sys/i386/i386/machdep.c, variable physmem.
This applies to -STABLE, I think -CURRENT does it differently.
Anyway, if it works, we're good.