Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274231
b: refs/heads/master
c: 4559424
h: refs/heads/master
i:
  274229: 4482514
  274227: c576e6e
  274223: 18229ed
v: v3
  • Loading branch information
Becky Bruce authored and Kumar Gala committed Oct 13, 2011
1 parent 5d33703 commit 4dfd044
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9df02231930c01eaaf3c37b192bd75ea0d1c0bb
refs/heads/master: 4559424a0c34f0cb22fa31bc24015a06dc064b32
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/mm/fsl_booke_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ unsigned long p_mapped_by_tlbcam(phys_addr_t pa)

/*
* Set up a variable-size TLB entry (tlbcam). The parameters are not checked;
* in particular size must be a power of 4 between 4k and 256M (or 1G, for cpus
* that support extended page sizes). Note that while some cpus support a
* page size of 4G, we don't allow its use here.
* in particular size must be a power of 4 between 4k and the max supported by
* an implementation; max may further be limited by what can be represented in
* an unsigned long (for example, 32-bit implementations cannot support a 4GB
* size).
*/
static void settlbcam(int index, unsigned long virt, phys_addr_t phys,
unsigned long size, unsigned long flags, unsigned int pid)
{
unsigned int tsize, lz;
unsigned int tsize;

asm (PPC_CNTLZL "%0,%1" : "=r" (lz) : "r" (size));
tsize = 21 - lz;
tsize = __ilog2(size) - 10;

#ifdef CONFIG_SMP
if ((flags & _PAGE_NO_CACHE) == 0)
Expand Down

0 comments on commit 4dfd044

Please sign in to comment.