Subject: Re: [PATCH] [POWERPC] Fix handling of memreserve if the range lands in highmem

From: Scott Wood <[email-masked]>
Date: Wed, 09 Jan 2008 13:52:07 -0600

Kumar Gala wrote:
> I'm thinking I'll add something like:
> 
>                 if (addr < total_lowmem)
>                         reserve_bootmem(lmb.reserved.region[i].base,
>                                         lmb_size_bytes(&lmb.reserved, i));
> +               else if (lmb.reserved.region[i].base > total_lowmem) {

less than, surely?

> +                       unsigned long adjusted_size;
> +//                     adjusted_size = xxx;
> 
> need to figure out the math here.

Wouldn't it just be total_lowmem - lmb.reserved.region[i].base?

-Scott