diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-05-27 19:13:05 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-05-27 19:13:05 +0000 |
commit | 8d90d47a1217b260e9b224988ecd656aea199d0b (patch) | |
tree | 4502688e65d2645a09dd058dd1c1cd4cd2dfeec6 /sys/arch/sgi | |
parent | 34d492e9e955c8b5fee8c4d32075b0adef2fcccd (diff) |
Add a `L2 cache line size' member to struct cpu_info. This allows R4k code to
stop abusing another field, and will be used by more routines RSN.
No functional change.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/ip22_machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sgi/sgi/ip22_machdep.c b/sys/arch/sgi/sgi/ip22_machdep.c index c5c52f89e5b..5b0d227668a 100644 --- a/sys/arch/sgi/sgi/ip22_machdep.c +++ b/sys/arch/sgi/sgi/ip22_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip22_machdep.c,v 1.10 2012/05/27 14:27:10 miod Exp $ */ +/* $OpenBSD: ip22_machdep.c,v 1.11 2012/05/27 19:13:04 miod Exp $ */ /* * Copyright (c) 2012 Miodrag Vallat. @@ -104,8 +104,7 @@ ip22_arcbios_walk_component(arc_config_t *cf) * SS is Log2(cache size in 4KB units) (should be 0007) */ ci->ci_l2size = (1 << 12) << (key & 0x0000ffff); - /* L2 line size */ - ci->ci_cacheconfiguration = 1 << ((key >> 16) & 0xff); + ci->ci_l2line = 1 << ((key >> 16) & 0xff); ip22_arcwalk_results |= IP22_HAS_L2; } |