Re: Where does kernel store page tables?

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

 



On Mon, Jul 21, 2008 at 10:44 AM, ZelluX <zellux@xxxxxxxxx> wrote:
> Hi, all
>
> I have two problems about paging in Linux
>
> The first is, if we have physical memory of size 256M and allocate 16M to
> the kernel, are the page directory and page tables of the kernel all stored
> on the 16M kernel memory?
>

YES,

> And another problem is, after we start virtual memory mechanism by changing
> cr0, how to access physical memory in the kernel? For example, i have a
> pointer pte_ptr with address 0x14000,

by definition, the structure at the virtual address 0x14000 is a PTE
right?   then u just manipulate as per normal --- AND/OR operation to
set the bit.

the contents which the PTE structure contained will implement the
virtual to physical mapping mechanism.

 which points to a page table entry,
> and  i want to clear the dirty bit in the entry, can i just dereference
> pte_ptr and change its value?
>
> Many thanks and sorry for my poor English.
>

Correct me if wrong :-).

-- 
Regards,
Peter Teoh

--
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