|
@@ -48,6 +48,7 @@
|
|
|
#include <asm/sparsemem.h>
|
|
|
#include <asm/vdso.h>
|
|
|
#include <asm/fixmap.h>
|
|
|
+#include <asm/swiotlb.h>
|
|
|
|
|
|
#include "mmu_decl.h"
|
|
|
|
|
@@ -320,6 +321,11 @@ void __init mem_init(void)
|
|
|
struct page *page;
|
|
|
unsigned long reservedpages = 0, codesize, initsize, datasize, bsssize;
|
|
|
|
|
|
+#ifdef CONFIG_SWIOTLB
|
|
|
+ if (ppc_swiotlb_enable)
|
|
|
+ swiotlb_init(1);
|
|
|
+#endif
|
|
|
+
|
|
|
num_physpages = lmb.memory.size >> PAGE_SHIFT;
|
|
|
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
|
|
|
|