Commit 364230b9 authored by Rob Herring's avatar Rob Herring

ARM: use phys_addr_t for DMA zone sizes

In order to specify a DMA zone size of 4GB on LPAE systems, the sizes need
to be 64-bit. So make machine_desc.dma_zone_size and arm_dma_zone_size be
phys_addr_t instead of unsigned long.
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent d4e4ab86
...@@ -35,7 +35,7 @@ struct machine_desc { ...@@ -35,7 +35,7 @@ struct machine_desc {
unsigned int nr_irqs; /* number of IRQs */ unsigned int nr_irqs; /* number of IRQs */
#ifdef CONFIG_ZONE_DMA #ifdef CONFIG_ZONE_DMA
unsigned long dma_zone_size; /* size of DMA-able area */ phys_addr_t dma_zone_size; /* size of DMA-able area */
#endif #endif
unsigned int video_start; /* start of video RAM */ unsigned int video_start; /* start of video RAM */
......
...@@ -207,7 +207,7 @@ static void __init arm_bootmem_init(unsigned long start_pfn, ...@@ -207,7 +207,7 @@ static void __init arm_bootmem_init(unsigned long start_pfn,
#ifdef CONFIG_ZONE_DMA #ifdef CONFIG_ZONE_DMA
unsigned long arm_dma_zone_size __read_mostly; phys_addr_t arm_dma_zone_size __read_mostly;
EXPORT_SYMBOL(arm_dma_zone_size); EXPORT_SYMBOL(arm_dma_zone_size);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment