diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-01-10 09:44:04 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 17:53:13 +0100 |
commit | db84dc61552ae0d198a8133d28b80c3838930ba8 (patch) | |
tree | a2aed3a3d8789f297285c153ecc352ed6c8acb22 /include/asm-mips/dma.h | |
parent | [MIPS] Unify memset.S (diff) | |
download | linux-db84dc61552ae0d198a8133d28b80c3838930ba8.tar.xz linux-db84dc61552ae0d198a8133d28b80c3838930ba8.zip |
[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/dma.h')
-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 */ |