I am studying for my OS finals and there is something I just cant understand. The question is as follows:
Consider a virtual memory system with the following parameters:
- 32 bit virtual address
- 16 kbyte virtual page size
- 2 level page table
- 32 bit page table entry
Draw a diagram of the 32 bit address showing the length and placement of all bit fields (i.e offset in the page, primary page table offset and the secondary page table offset.
The answer is :
Why is this the case? How do they come up with this result?????Code:----------------------------------------------------------------- 32 bit Virtual Address | ------------------|-----------------|---------------------------| 9 bit PT1 field | 9 bit PT2 field | 14 bit offset | ------------------|-----------------|---------------------------| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -----------------------------------------------------------------
If anyone can help, I would greatly appreciate it.
Thanks