[PATCH] [POWERPC] Introduce lowmem_end_addr to distiguish fromtotal_lowmem

Kumar Gala galak at kernel.crashing.org
Tue Mar 25 14:31:16 EST 2008


On Mar 24, 2008, at 10:18 PM, Zhang Wei wrote:
> Hi, Kumar,
>
>> -----Original Message-----
>> From: linuxppc-dev-bounces+wei.zhang=freescale.com at ozlabs.org
>>
>> total_lowmem represents the amount of low memory not the
>> physical address
>> that low memory ends at.  If the start of memory is at 0 it
>> happends that
>> total_lowmem can be used as both the size and the address that lowmem
>> ends at. (technical its one byte beyond the end)
>>
>> To make the code a bit more clear and deal with the case when
>> the start of
>> memory isn't at physical 0, we introduce lowmem_end_addr that
>> represents
>> one byte beyond the last physical address in the lowmem region.
>
> About the kernel memory offset, if the memory area from phyical 0
> to lowmem start address is reserved for other usage in this kernel,
> no more comments. If it will be used by other kernel (in asmp mode),
> how about to use tlb mapping physical address to virtual address 0
> not move the kernel lowmem address? I consider the tlb mapping
> will be more safe.

I'm not sure I follow your question.

- k




More information about the Linuxppc-dev mailing list