diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-01-10 11:44:04 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 19:53:13 +0300 |
commit | db84dc61552ae0d198a8133d28b80c3838930ba8 (patch) | |
tree | a2aed3a3d8789f297285c153ecc352ed6c8acb22 /include/asm-mips | |
parent | a583158c9ce822c96a718fbf877cec1e5f9ad75d (diff) | |
download | linux-db84dc61552ae0d198a8133d28b80c3838930ba8.tar.xz |
[MIPS] Setup min_low_pfn/max_low_pfn correctly
This patch makes a better usage of these two globals.
'min_low_pfn' is now correctly setup for all configs, which
allow us to rely on it in boot memory code init.
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/dma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-mips/dma.h b/include/asm-mips/dma.h index 23f789c80845..e06ef0776d48 100644 --- a/include/asm-mips/dma.h +++ b/include/asm-mips/dma.h @@ -91,6 +91,7 @@ #else #define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000) #endif +#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS)) /* 8237 DMA controllers */ #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ |