Never free the lower 1Mbyte of physical memory.

We use it for the AP boot code and stack and could free it after that, but it's easier not to.
上级 7737297d
......@@ -87,7 +87,7 @@ initmem(u64 mbaddr)
while (p < ep) {
mbmem = (Mbmem *)(p+4);
p += 4 + *(u32*)p;
if (mbmem->type == 1) {
if (mbmem->type == 1 && mbmem->base >= 0x100000) {
membytes += mbmem->length;
mem[nmem] = *mbmem;
nmem++;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论