weird sparc64/-current issue!? (p7zip)
Christian Weisgerber
naddy at mips.inka.de
Mon Sep 3 11:40:18 PDT 2007
Juergen Lock <nox at jelal.kn-bremen.de> wrote:
> alepulver made me aware of this,
> http://pointyhat.freebsd.org/errorlogs/sparc64-7-latest-logs/mame-extras-0.114.log
> -8624 CPU(s)? :) It works on 6,
> http://pointyhat.freebsd.org/errorlogs/sparc64-6-latest-logs/mame-extras-0.114.log
Does that machine really have 35 CPUs?
> UInt32 GetNumberOfProcessors() {
> int nbcpu = 1;
> size_t value;
> size_t len = sizeof(value);
> if (sysctlbyname("hw.ncpu", &value, &len, NULL, 0) == 0)
> nbcpu = value;
> return nbcpu;
> }
Are you sure that value is of type size_t here? I think it is an
int. (Remember, size_t is 64 bits on all our 64-bit platforms, int
is 32 bits.)
--
Christian "naddy" Weisgerber naddy at mips.inka.de
More information about the freebsd-sparc64
mailing list