Ing windows virtual addresses to physical addresses

Source: Internet
Author: User

1. The CPU's MMU locates the page directory for the process using
The special register mentioned above.
2. The page Directory Index (from the first 10 bits of the virtual address)
Is used to locate the PVDF that identifies the page table
Needed to map the virtual address to a physical one.
3. The page table index (from the second 10 bits of the virtual address)
Is used to locate the PTE that maps the physical location of the virtual
Memory Page referenced by the address.
4. The Pte is used to locate the physical page. If the virtual page is
Mapped to a page that is already in physical memory, the PTE will

Contain the page frame number (PFn) of the page in physical memory
That contains the data in question. (processors Reference Memory
Locations by PFN.) If the page is not in physical memory, the MMU
Raises a page fault, and the windows page fault-handling code attempts
To locate the page in the system paging file. If the page can be
Located, it is loaded into physical memory, and the Pte is updated
Reflect its location. If it cannot be located and the translation is a user
Mode translation, an access violation occurs because the virtual address
References an invalid physical address. If the page cannot be
Located and the translation is occurring in kernel mode, a bug check
(Also called a blue screen) occurs.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.