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

Remove annoying "bytes/CPU isn't aligned" warning.

..I think we must use the SRAT to map physical memory to node IDs.
上级 89a7d4f1
...@@ -273,10 +273,8 @@ initkalloc(u64 mbaddr) ...@@ -273,10 +273,8 @@ initkalloc(u64 mbaddr)
cprintf("%lu mbytes\n", membytes / (1<<20)); cprintf("%lu mbytes\n", membytes / (1<<20));
n = membytes / NCPU; n = membytes / NCPU;
if (n & (PGSIZE-1)) { if (n & (PGSIZE-1))
cprintf("bytes/CPU isn't aligned\n");
n = PGROUNDDOWN(n); n = PGROUNDDOWN(n);
}
p = (char*)PGROUNDUP((uptr)newend); p = (char*)PGROUNDUP((uptr)newend);
k = (((uptr)p) - KBASE); k = (((uptr)p) - KBASE);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论