windows 虚拟地址映射到物理地址

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.

 

posted on 2012-08-08 16:44  Fanr_Zh 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/Amaranthus/archive/2012/08/08/2628571.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值