We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8919975 commit 66b416eCopy full SHA for 66b416e
arch/mips/kernel/setup.c
@@ -321,7 +321,7 @@ static void __init bootmem_init(void)
321
* Reserve any memory between the start of RAM and PHYS_OFFSET
322
*/
323
if (ramstart > PHYS_OFFSET)
324
- memblock_reserve(PHYS_OFFSET, PFN_UP(ramstart) - PHYS_OFFSET);
+ memblock_reserve(PHYS_OFFSET, ramstart - PHYS_OFFSET);
325
326
if (PFN_UP(ramstart) > ARCH_PFN_OFFSET) {
327
pr_info("Wasting %lu bytes for tracking %lu unused pages\n",
0 commit comments