windows 虛擬位址映射到物理地址

來源:互聯網
上載者: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 PDE 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 to
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.

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.