mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
memblock: Make MEMBLOCK_ERROR be 0
And ensure we don't hand out 0 as a valid allocation. We put the low limit at PAGE_SIZE arbitrarily. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
37d8d4bf48
commit
25818f0f28
2 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
#include <asm/memblock.h>
|
||||
|
||||
#define INIT_MEMBLOCK_REGIONS 128
|
||||
#define MEMBLOCK_ERROR (~(phys_addr_t)0)
|
||||
#define MEMBLOCK_ERROR 0
|
||||
|
||||
struct memblock_region {
|
||||
phys_addr_t base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue