提交 452b5e21 编写于 作者: M Matt Porter 提交者: Paul Mackerras

[POWERPC] Fix powerpc 44x_mmu build

The PIN_SIZE definition name changed, update 44x_mmu.c accordingly.
Signed-off-by: NMatt Porter <mporter@embeddedalley.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 f4dddce5
...@@ -103,7 +103,7 @@ unsigned long __init mmu_mapin_ram(void) ...@@ -103,7 +103,7 @@ unsigned long __init mmu_mapin_ram(void)
/* Determine number of entries necessary to cover lowmem */ /* Determine number of entries necessary to cover lowmem */
pinned_tlbs = (unsigned int) pinned_tlbs = (unsigned int)
(_ALIGN(total_lowmem, PPC44x_PIN_SIZE) >> PPC44x_PIN_SHIFT); (_ALIGN(total_lowmem, PPC_PIN_SIZE) >> PPC44x_PIN_SHIFT);
/* Write upper watermark to save location */ /* Write upper watermark to save location */
tlb_44x_hwater = PPC44x_LOW_SLOT - pinned_tlbs; tlb_44x_hwater = PPC44x_LOW_SLOT - pinned_tlbs;
...@@ -111,7 +111,7 @@ unsigned long __init mmu_mapin_ram(void) ...@@ -111,7 +111,7 @@ unsigned long __init mmu_mapin_ram(void)
/* If necessary, set additional pinned TLBs */ /* If necessary, set additional pinned TLBs */
if (pinned_tlbs > 1) if (pinned_tlbs > 1)
for (i = (PPC44x_LOW_SLOT-(pinned_tlbs-1)); i < PPC44x_LOW_SLOT; i++) { for (i = (PPC44x_LOW_SLOT-(pinned_tlbs-1)); i < PPC44x_LOW_SLOT; i++) {
unsigned int phys_addr = (PPC44x_LOW_SLOT-i) * PPC44x_PIN_SIZE; unsigned int phys_addr = (PPC44x_LOW_SLOT-i) * PPC_PIN_SIZE;
ppc44x_pin_tlb(i, phys_addr+PAGE_OFFSET, phys_addr); ppc44x_pin_tlb(i, phys_addr+PAGE_OFFSET, phys_addr);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册