You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Operating System
We know that page table Directory base address is stored in cr3 register . But how does a entry in page table directory know where to find the corresponding page table entry? I know that it uses first 20 bit to find the address of the page table. But where it gets the base address of the page table ?
Thanks & Regards,
Dhinesh L
Dhinesh
unread,
Feb 23, 2021, 9:58:32 PM2/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Operating System, Dhinesh
So, the page directory provides the base which is 20 bit, and the offset is present in the linear address (next 10 bit). Since each entry is 4 byte(32 bit) . We dont need the last 2 bits.
Arsh Gautam
unread,
Mar 24, 2021, 3:49:59 AM3/24/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Operating System, Dhinesh
Virtual address, va is 32 bits. The first 10 bits of va index into the page table directory. The entry of page table directory is 32 bits, of which 20 bits is used to address the page table entry and next 10 bits from va are used to index the page table page. Now 20 bits of page table entry point to actual pages while the next 12 bits of virtual address byte address in the page.