|
@@ -7,6 +7,7 @@
|
|
|
#include <linux/mmzone.h>
|
|
#include <linux/mmzone.h>
|
|
|
#include <linux/mm_types.h>
|
|
#include <linux/mm_types.h>
|
|
|
#include <asm/dma.h>
|
|
#include <asm/dma.h>
|
|
|
|
|
+#include <asm/processor.h>
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* simple boot-time physical memory area allocator.
|
|
* simple boot-time physical memory area allocator.
|
|
@@ -119,6 +120,10 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat,
|
|
|
#define BOOTMEM_LOW_LIMIT __pa(MAX_DMA_ADDRESS)
|
|
#define BOOTMEM_LOW_LIMIT __pa(MAX_DMA_ADDRESS)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#ifndef ARCH_LOW_ADDRESS_LIMIT
|
|
|
|
|
+#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#define alloc_bootmem(x) \
|
|
#define alloc_bootmem(x) \
|
|
|
__alloc_bootmem(x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT)
|
|
__alloc_bootmem(x, SMP_CACHE_BYTES, BOOTMEM_LOW_LIMIT)
|
|
|
#define alloc_bootmem_align(x, align) \
|
|
#define alloc_bootmem_align(x, align) \
|
|
@@ -180,10 +185,6 @@ static inline void * __init memblock_virt_alloc_nopanic(
|
|
|
NUMA_NO_NODE);
|
|
NUMA_NO_NODE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#ifndef ARCH_LOW_ADDRESS_LIMIT
|
|
|
|
|
-#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL
|
|
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
static inline void * __init memblock_virt_alloc_low(
|
|
static inline void * __init memblock_virt_alloc_low(
|
|
|
phys_addr_t size, phys_addr_t align)
|
|
phys_addr_t size, phys_addr_t align)
|
|
|
{
|
|
{
|