Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68278
b: refs/heads/master
c: ab27f62
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 24, 2007
1 parent 1b52f2c commit 006d153
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8328a8ba92819792f37e3db002d404554e7a6f79
refs/heads/master: ab27f62002f4dc8f759c1ec069024d8173e5dea0
15 changes: 15 additions & 0 deletions trunk/arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ static void __init emit_cache_params(void)
boot_cpu_data.dcache.alias_mask,
boot_cpu_data.dcache.n_aliases);

/*
* Emit Secondary Cache parameters if the CPU has a probed L2.
*/
if (boot_cpu_data.flags & CPU_HAS_L2_CACHE) {
printk("S-cache : n_ways=%d n_sets=%d way_incr=%d\n",
boot_cpu_data.scache.ways,
boot_cpu_data.scache.sets,
boot_cpu_data.scache.way_incr);
printk("S-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n",
boot_cpu_data.scache.entry_mask,
boot_cpu_data.scache.alias_mask,
boot_cpu_data.scache.n_aliases);
}

if (!__flush_dcache_segment_fn)
panic("unknown number of cache ways\n");
}
Expand All @@ -81,6 +95,7 @@ void __init p3_cache_init(void)
{
compute_alias(&boot_cpu_data.icache);
compute_alias(&boot_cpu_data.dcache);
compute_alias(&boot_cpu_data.scache);

switch (boot_cpu_data.dcache.ways) {
case 1:
Expand Down

0 comments on commit 006d153

Please sign in to comment.