[PATCH] powerpc: change rheap functions to use long integers instead of pointers
Timur Tabi
timur at freescale.com
Thu Apr 5 04:34:27 EST 2007
Scott Wood wrote:
>> Otherwise, if you pass an unaligned value of 'start', then the buffer
>> you get back will be less than 'size'.
>
> That's better than the buffer you get back being bigger than the region
> that's really free...
True, but I think both cases should be rejected.
> If I attach a region from 0x03 to 0x2d, and the alignment is 4, then the
> only sane thing to do is allocate from 0x04 to 0x2b.
Or return an error.
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the Linuxppc-dev
mailing list