Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx Fix nearly 20 year old type - cache ...



details:   https://anonhg.NetBSD.org/src/rev/aa8ff1826097
branches:  trunk
changeset: 982075:aa8ff1826097
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Mar 30 13:41:46 2021 +0000

description:
Fix nearly 20 year old type - cache sizes are 2048 bytes, not 2848 bytes.

diffstat:

 sys/arch/powerpc/ibm4xx/cpu.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 9952530ffcb2 -r aa8ff1826097 sys/arch/powerpc/ibm4xx/cpu.c
--- a/sys/arch/powerpc/ibm4xx/cpu.c     Tue Mar 30 05:18:37 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/cpu.c     Tue Mar 30 13:41:46 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.37 2021/03/30 02:27:00 rin Exp $     */
+/*     $NetBSD: cpu.c,v 1.38 2021/03/30 13:41:46 simonb Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.37 2021/03/30 02:27:00 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.38 2021/03/30 13:41:46 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,7 +66,7 @@
                .ci = {
                        .dcache_size = 1024,
                        .dcache_line_size = 16,
-                       .icache_size = 2848,
+                       .icache_size = 2048,
                        .icache_line_size = 16,
                }
        }, {
@@ -94,7 +94,7 @@
                .mask = 0xffff0000,
                .name = "401D2",
                .ci = {
-                       .dcache_size = 2848,
+                       .dcache_size = 2048,
                        .dcache_line_size = 16,
                        .icache_size = 4096,
                        .icache_line_size = 16,
@@ -116,7 +116,7 @@
                .ci = {
                        .dcache_size = 2048,
                        .dcache_line_size = 16,
-                       .icache_size = 2848,
+                       .icache_size = 2048,
                        .icache_line_size = 16,
                }
        }, {
@@ -124,7 +124,7 @@
                .mask = 0xffff0000,
                .name = "401G2",
                .ci = {
-                       .dcache_size = 2848,
+                       .dcache_size = 2048,
                        .dcache_line_size = 16,
                        .icache_size = 8192,
                        .icache_line_size = 16,



Home | Main Index | Thread Index | Old Index