Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

请教一个分页机制的切换问题

18 views
Skip to first unread message

Ludy Lu

unread,
Sep 21, 2016, 10:53:23 PM9/21/16
to osfromscratch

如上图,紫色框里的代码应该是找到LinearAddrDemo对应的是哪个PTE,然后赋值,目前,怎么计算对应到哪个PTE没看明白,特别是乘以4096是什么意思,知道的朋友帮忙看下

七羽

unread,
Sep 22, 2016, 1:33:37 AM9/22/16
to osfrom...@googlegroups.com
4096=4K 乘以4096其实就是将基址向后移动4k也就是指向下一个4k页

2016-09-22 10:53 GMT+08:00 Ludy Lu <lud...@gmail.com>:

如上图,紫色框里的代码应该是找到LinearAddrDemo对应的是哪个PTE,然后赋值,目前,怎么计算对应到哪个PTE没看明白,特别是乘以4096是什么意思,知道的朋友帮忙看下

--
--
You received this message because you are subscribed to the Google
Groups "自己动手写操作系统" group.
To post to this group, send email to osfrom...@googlegroups.com
To unsubscribe from this group, send email to
osfromscratch+unsubscribe@googlegroups.com
For more options, visit this group at
https://groups.google.com/group/osfromscratch?hl=en

---
You received this message because you are subscribed to the Google Groups "自己动手写操作系统" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osfromscratch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
寄意寒星荃不察,我以我血荐轩辕。

Ludy Lu

unread,
Sep 22, 2016, 8:44:34 PM9/22/16
to osfromscratch
好的,多谢~~
Reply all
Reply to author
Forward
0 new messages