Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212392
b: refs/heads/master
c: 5fb31a9
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Oct 8, 2010
1 parent 65c2941 commit da91691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: c4e259c859538e94007d1f04a488540375189551
refs/heads/master: 5fb31a96e1e0078f1e82736ccd72a61ecabe6a4f
9 changes: 5 additions & 4 deletions trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,12 @@ static int cpu_has_aliasing_icache(unsigned int arch)
/* arch specifies the register format */
switch (arch) {
case CPU_ARCH_ARMv7:
asm("mcr p15, 2, %1, c0, c0, 0 @ set CSSELR\n"
"isb\n"
"mrc p15, 1, %0, c0, c0, 0 @ read CCSIDR"
: "=r" (id_reg)
asm("mcr p15, 2, %0, c0, c0, 0 @ set CSSELR"
: /* No output operands */
: "r" (1));
isb();
asm("mrc p15, 1, %0, c0, c0, 0 @ read CCSIDR"
: "=r" (id_reg));
line_size = 4 << ((id_reg & 0x7) + 2);
num_sets = ((id_reg >> 13) & 0x7fff) + 1;
aliasing_icache = (line_size * num_sets) > PAGE_SIZE;
Expand Down

0 comments on commit da91691

Please sign in to comment.