[<prev] [next>] [<thread-prev] [thread-next>] [month] [year] [list]
Date: Tue, 06 May 2008 23:54:38 +0200
From: Jiri Slaby <jirislaby@...il.com>
To: Christoph Lameter <clameter@....com>
Subject: Re: [RFC 1/1] mm: add virt to phys debug
On 05/01/2008 10:18 PM, Christoph Lameter wrote:
> On Thu, 1 May 2008, Jiri Slaby wrote:
>> Add some (configurable) expensive sanity checking to catch wrong address
>> translations on x86.
>>
>> - create linux/mmdebug.h file to be able include this file in
>> asm headers to not get unsolvable loops in header files
>> - __phys_addr on x86_32 became a function in ioremap.c since
>> PAGE_OFFSET and is_vmalloc_addr is undefined if declared in
>> page_32.h (again circular dependencies)
>> - add __phys_addr_const for initializing doublefault_tss.__cr3
>
> Hmmm.. We could use include/linux/bounds.h to make
> VMALLOC_START/VMALLOC_END (or whatever you need for checking the memory
> boundaries) a cpp constant which may allow the use in page_32.h without
> circular dependencies.
I like the idea, I'll get back with a patch in few days (sorry, too busy).
Anyway bounds.h should be include/asm/ thing though.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hosted by DataForce ISP -
Powered by Openwall GNU/*/Linux