[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 4M kernel pages



David Mentr\'e wrote:
> 
> To much brute force. :)

Nope, i have already my own 2-3 drivers as modules. So the only thing
i had to do was:
	__asm__ __volatile__ (
	"movl	%%cr3, %0\n\t"
	:"=q" (__cr3));
	for( i=0; i<1024; i++ )
		printk("0x%x, ", (int)*(__cr3+i) );

in the init_module(). 

> BTW, I think I've found when the PS bit is set. In fact, I you may have
> overlooked arch/i386/mm/init.c. Around line 325, you have :
... 
>             __pe = _KERNPG_TABLE + _PAGE_4M + __pa(address); <----
... 
> Is it right ? Or you where looking at another page directory ? (I'm far
> from an expert in both kernel and i386 asm)

Yes, you catch it. I realy overlooked in my first glance while
i was looking for other thing.
 
> No. It's interesting to know how things are done. And while trying to
> explain this, I'm learning the Linux kernel. :)

;-) Me too. I'll keep on looking at mm.
As Linus said it can be a bitch ;-))

regards
-- 
Petko Manolov - petkan@varel.bg
http://www.varel.bg/~petkan
--
This is a majordomo managed list.  To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org