]> git.dujemihanovic.xyz Git - u-boot.git/commit
ppc/85xx: Fix how we determine the number of CAM entries
authorKumar Gala <galak@kernel.crashing.org>
Fri, 13 Nov 2009 14:52:21 +0000 (08:52 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 13 Nov 2009 15:11:01 +0000 (09:11 -0600)
commitcdbdbe65f5f006cba208accee5a126c659d4b867
tree1a42740d6ea7579d530ac3a12016d2c08ea5ae37
parent3ad95deb30ac73bd57e966d321215a17d3236f9f
ppc/85xx: Fix how we determine the number of CAM entries

We were incorrectly use the max CAM size as the number of entries in
the array for setting up the addrmap.  We should be using the NENTRY
field which is the low 12-bits of TLB1CFG.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/tlb.c