Re: [Re: PATCH] numactl: fix libnuma on big-endian 64-bit systems

2008-12-10 Thread Mijo Safradin
Cliff Wickman wrote: > [EMAIL PROTECTED] > > Arnd Bergmann and Mijo Safradin called my attention to problems with > libnuma's read_mask() on a big-endian 64-bit machine. > > In testing that function I found it to be buggy on little-endian and 32-bit > systems as well. > > I propose a function th

[Re: PATCH] numactl: fix libnuma on big-endian 64-bit systems

2008-12-05 Thread Cliff Wickman
[EMAIL PROTECTED] Arnd Bergmann and Mijo Safradin called my attention to problems with libnuma's read_mask() on a big-endian 64-bit machine. In testing that function I found it to be buggy on little-endian and 32-bit systems as well. I propose a function that looks like the below. The patch is

Re: [PATCH] numactl: fix libnuma on big-endian 64-bit systems

2008-12-04 Thread Arnd Bergmann
On Thursday 04 December 2008, Lee Schermerhorn wrote: > On Thu, 2008-12-04 at 18:34 +0100, Arnd Bergmann wrote: > > The read-mask function assumes that it is running in 32-bit mode, > > by addressing the bitmask as a series of int values, instead of > > longs. This is broken as can easily be reprod

Re: [PATCH] numactl: fix libnuma on big-endian 64-bit systems

2008-12-04 Thread Lee Schermerhorn
On Thu, 2008-12-04 at 18:34 +0100, Arnd Bergmann wrote: > The read-mask function assumes that it is running in 32-bit mode, > by addressing the bitmask as a series of int values, instead of > longs. This is broken as can easily be reproduced by running numademo > on a bit-endian 64-bit system. > >