Question: Suppose the page size is 8 bytes, the first - level page table has 4 entries and the secondlevel page table has 8 entries. You

Suppose the page size is 8 bytes, the first-level page table has 4 entries and the secondlevel page table has 8 entries. You need to answer the following questions:
Page Mapping Setup (30 marks)
A program has three segments that should be loaded and mapped:
Code segment is loaded at physical memory range [0,24) and should be mapped to virtual
memory range [16,40)
Data segment: PA [32,64) and should be mapped to VA [64,96)
Stack segment: PA [64,80) and should be mapped to VA [240,256)
You should fill the physical page frame numbers in the following page tables in Figure 2 to set up the
page mapping. If some entries in the page tables are not used, you can just leave them empty.
Figure 2. Page tables and address mapping
Note: the page directory has been set up. You only need to attach the three filled page tables
PT@PFN=10, PT@PFN=11 and PT@PFN=12 in your answer
Suppose the page size is 8 bytes, the first -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!