提交 266d673d 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Map the first 128GBytes of physical memory.

上级 19d0c6a0
...@@ -107,7 +107,7 @@ void ...@@ -107,7 +107,7 @@ void
initpg(char* (*alloc)(void)) initpg(char* (*alloc)(void))
{ {
// Map first 4GB to KBASE // Map first 4GB to KBASE
pgmap((void *) (KBASE+(1UL<<30)), (void *) (KBASE+(1UL<<32)), (1UL<<30)); pgmap((void *) (KBASE+(1ull<<30)), (void *) (KBASE+(128ull<<30)), (1ull<<30));
// boot.S maps first 1GB to KBASE and gets us running with kpml4 // boot.S maps first 1GB to KBASE and gets us running with kpml4
} }
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论