MP Q-ANS-Module 4
MP Q-ANS-Module 4
Subject: Microprocessor
Class: SE A/B/C Div: A/B/C Semester: IV
Questions on Module-4
S E ED W
E C R
16- bit operations, Default mode 32- bit operations, Protected mode
after reset entered after making LSB of CR0
(PE=1)
Control register: Only LSB of CR0 All four control registers are available
is available in real mode CR0,CR1,CR3,CR4
A page from virtual memory is loaded into any available page frame of physical
memory
Since a page of virtual memory can be loaded into any page of physical memory, a
“page table” is required to give the mapping between virtual memory page number
and physical memory page frame number.
Page table tells which page of virtual memory is present in which page frame of
physical memory
4𝐺𝐵
But as there are too many page frames( No. of frames = 4𝐾𝐵 = 1MB), to search
any page frame from 1MB of frames it will take long time
Therefore there are 1K(210) page entries in a page table and there are 1 K (210)
such page tables
Each page table is of 4KB and has 1K “Page Table Entries”(PTEs) each of size 4
bytes. Each PTE gives information about a page frame
The PTE has following information: 20 bit page frame address: Gives the upper
20 bits of the starting address of the page frame, lower 12 bits are 0….0, as the
page is of 4 KB and starts from a 4KB aligned location, these 20 bits are used to
give the information about access and privilege
D: Dirty bit indicates whether the page has been modified(1) or not(0)
A: Access bit tells whether the page has been accessed or not(1= accessed)
U/S: User or supervisor and R/W: Read or Read and Write give protection
information
If P=1 then the page is present and the 20 bit address field is valid, else the page is
not present
Information about all the page tables is stored in the “Page Directory”
The page directory is of 4KB and has 1K”Page Directory Entries”(PDEs) each of size
4 bytes, each PDE gives information about page table
• The PDE has following information: 20 bit page table address: Gives the
upper 20 bits of the starting address of the page table, lower 12 bits are 0….0,
as the page is of 4 KB and starts from a 4KB aligned location
• D: Dirty bit indicates whether the page has been modified(1) or not(0)
• A: Access bit tells whether the page has been accessed or not(1= accessed)
• U/S: User or supervisor and R/W: Read or Read and Write give protection
information
• If P=1 then the page is present and the 20 bit address field is valid, else the
page is not present
• The page directory is of 4KB and begins from a 4 KB aligned location
• The address of the page directory is given by the PDBR(Page Directory Base
Register) field in CR3