diff options
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index bbe838996470..4e75919bf6b9 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -200,7 +200,7 @@ static void tce_build_cell(struct iommu_table *tbl, long index, long npages, | |||
200 | (window->ioid & IOPTE_IOID_Mask); | 200 | (window->ioid & IOPTE_IOID_Mask); |
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | io_pte = (unsigned long *)tbl->it_base + (index - window->pte_offset); | 203 | io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); |
204 | 204 | ||
205 | for (i = 0; i < npages; i++, uaddr += IOMMU_PAGE_SIZE) | 205 | for (i = 0; i < npages; i++, uaddr += IOMMU_PAGE_SIZE) |
206 | io_pte[i] = base_pte | (__pa(uaddr) & IOPTE_RPN_Mask); | 206 | io_pte[i] = base_pte | (__pa(uaddr) & IOPTE_RPN_Mask); |
@@ -232,7 +232,7 @@ static void tce_free_cell(struct iommu_table *tbl, long index, long npages) | |||
232 | | (window->ioid & IOPTE_IOID_Mask); | 232 | | (window->ioid & IOPTE_IOID_Mask); |
233 | #endif | 233 | #endif |
234 | 234 | ||
235 | io_pte = (unsigned long *)tbl->it_base + (index - window->pte_offset); | 235 | io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); |
236 | 236 | ||
237 | for (i = 0; i < npages; i++) | 237 | for (i = 0; i < npages; i++) |
238 | io_pte[i] = pte; | 238 | io_pte[i] = pte; |