Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48865163 authored by Christopher SMITH's avatar Christopher SMITH Committed by Paul Mundt
Browse files

sh: Only reserve memory under CONFIG_ZERO_PAGE_OFFSET when it != 0.

parent cadc4e1a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -262,9 +262,9 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
			BOOTMEM_DEFAULT);

	/*
	 * reserve physical page 0 - it's a special BIOS page on many boxes,
	 * enabling clean reboots, SMP operation, laptop functions.
	 * Reserve physical pages below CONFIG_ZERO_PAGE_OFFSET.
	 */
	if (CONFIG_ZERO_PAGE_OFFSET != 0)
		reserve_bootmem(__MEMORY_START, CONFIG_ZERO_PAGE_OFFSET,
				BOOTMEM_DEFAULT);