1

在 x86-64 长模式下,最近的 Intel/AMD 微处理器是否允许 TLB 同时将 4K、2MB 和 1GB(大页面)页面的虚拟地址转换为物理地址?

据我阅读手册后了解,如果您设置:

bit PDPE.PS=1 in a few records in Page Directory Pointer Table to mark 1GB pages
bit PDPE.PS=0 and PDE.PS=1 in a few records in Page Directory Table to mark 2MB pages
bit PDPE.PS=0 and PDE.PS=0 in a few records in Page Directory Table to mark 4K pages

但是我从来没有尝试过,所以在我开始编码之前,你能告诉我它是否有效吗?

4

1 回答 1

1

是的,您可以同时使用不同的尺寸。我认为这只是一个错字,但您的问题表明PDPE.PS=0 and PDE.PS=12MB 和 4kB 页面。对于 4kB 页面,两个页面大小位都应为 0。

于 2011-11-03T23:33:22.450 回答