[PATCH] powerpc: change rheap functions to use long integers instead of pointers
scottwood at freescale.com
Thu Apr 5 04:13:51 EST 2007
On Wed, Apr 04, 2007 at 08:00:44PM +0200, Sylvain Munaut wrote:
> Timur Tabi wrote:
> > The first time you call rh_alloc(), you will get back a value of 0,
> > because that's the beginning of the heap.
> No, it doesn't always return 0.
> That depends on what free region you "attached" at initialisation. And
> you could have attached 0xffff0000 -> 0xffffffff ....
...in which case it's already broken, as IS_ERR() will return true after
you use up a little over 1/16 of the region.
More information about the Linuxppc-dev