Re: [RFC/PATCH] powerpc: Fix powerpc 32 bits resource fixup for 64 bits resources

2007-11-16 Thread Vitaly Bordug
On Fri, 16 Nov 2007 18:28:34 +1100 Benjamin Herrenschmidt wrote: > The 32bits powerpc resource fixup code uses unsigned longs to do the > offseting of resources which overflows on platforms such as 4xx where > resources can be 64 bits. > > This fixes it by using resource_size_t instead. > > Howe

[RFC/PATCH] powerpc: Fix powerpc 32 bits resource fixup for 64 bits resources

2007-11-15 Thread Benjamin Herrenschmidt
The 32bits powerpc resource fixup code uses unsigned longs to do the offseting of resources which overflows on platforms such as 4xx where resources can be 64 bits. This fixes it by using resource_size_t instead. However, the IO stuff does rely on some 32 bits arithmetic, so we hack by cropping t