Re: __get_free_pages() internal

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

 



Just found it for myself.   The answer to the location of the
pagetable is indicated by the swapper_pg_dir variable.

The pagetable starts at swapper_pg_dir, and it is constructed before
the paging is enabled, (in paging_init())

void __init paging_init(void)
{
        pagetable_init();
        load_cr3(swapper_pg_dir);
        __flush_tlb_all();
        kmap_init();
}

Thanks.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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