about the paing mode

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

 



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


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux