summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-09-11 11:30:30 -0500
committerKumar Gala <galak@kernel.crashing.org>2009-09-15 21:30:09 -0500
commit206af3527c05e520e28d38a48a1d15433e34675d (patch)
tree9abb21e56d2d438ae8d8ca06d1f03620281aec9a /cpu
parentd30f9043539d372cf66406bc2f21bb8c20e67009 (diff)
downloadu-boot-imx-206af3527c05e520e28d38a48a1d15433e34675d.zip
u-boot-imx-206af3527c05e520e28d38a48a1d15433e34675d.tar.gz
u-boot-imx-206af3527c05e520e28d38a48a1d15433e34675d.tar.bz2
ppc/85xx: Repack tlb_table to save space
We can pack the initial tlb_table in MAS register format and use write_tlb to set things up. This savings can be helpful for NAND style first stage boot loaders. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc85xx/tlb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpu/mpc85xx/tlb.c b/cpu/mpc85xx/tlb.c
index d39712a..f87a10d 100644
--- a/cpu/mpc85xx/tlb.c
+++ b/cpu/mpc85xx/tlb.c
@@ -90,10 +90,11 @@ void init_tlbs(void)
int i;
for (i = 0; i < num_tlb_entries; i++) {
- set_tlb(tlb_table[i].tlb, tlb_table[i].epn, tlb_table[i].rpn,
- tlb_table[i].perms, tlb_table[i].wimge,
- tlb_table[i].ts, tlb_table[i].esel, tlb_table[i].tsize,
- tlb_table[i].iprot);
+ write_tlb(tlb_table[i].mas0,
+ tlb_table[i].mas1,
+ tlb_table[i].mas2,
+ tlb_table[i].mas3,
+ tlb_table[i].mas7);
}
return ;