about the paing mode
RS
tinyshrimp at 163.com
Sun May 4 21:50:13 EDT 2014
Hello
I build my kernel with "CONFIG_HIGHMEM4G=y" option to disable the PAE, choose the 32-bit paging mode.
In the runtime, the CR4 value is 0x0000 06D0, (bit 5 is 0, PAE=0, disabled).
When I execute the code below:
void *ret = kmalloc(sizeof(something), GFP_KERNEL);
pte_t *pte = lookup_address(ret, &level); // int level
the level value is 2(PG_LEVEL_2M), not the 1(PG_LEVEL_4K). So I think the kernel has used 2 kinds of pages, 4MB size page and 4KB size page. Is that right ?
Thanks,
HeChuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140505/3d22df8c/attachment.html
More information about the Kernelnewbies
mailing list