Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc When overriding cache flush functions f...



details:   https://anonhg.NetBSD.org/src/rev/8f3cb23235db
branches:  trunk
changeset: 473991:8f3cb23235db
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Jun 24 20:22:12 1999 +0000

description:
When overriding cache flush functions for specific cpu models, make
sure to update the correct function pointers in `cpuinfo'.

diffstat:

 sys/arch/sparc/sparc/cpu.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r 466560be4fd5 -r 8f3cb23235db sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Thu Jun 24 20:16:31 1999 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Thu Jun 24 20:22:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.93 1999/05/20 10:06:39 pk Exp $ */
+/*     $NetBSD: cpu.c,v 1.94 1999/06/24 20:22:12 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -633,11 +633,11 @@
                ci->c_nlines = 0;
 
                /* Override cache flush functions */
-               sc->cache_flush = noop_cache_flush;
-               sc->vcache_flush_page = noop_vcache_flush_page;
-               sc->vcache_flush_segment = noop_vcache_flush_segment;
-               sc->vcache_flush_region = noop_vcache_flush_region;
-               sc->vcache_flush_context = noop_vcache_flush_context;
+               sc->sp_cache_flush = noop_cache_flush;
+               sc->sp_vcache_flush_page = noop_vcache_flush_page;
+               sc->sp_vcache_flush_segment = noop_vcache_flush_segment;
+               sc->sp_vcache_flush_region = noop_vcache_flush_region;
+               sc->sp_vcache_flush_context = noop_vcache_flush_context;
                break;
        case CPUTYP_4_200:
                ci->c_vactype = VAC_WRITEBACK;
@@ -1208,11 +1208,11 @@
        sc->mmu_enable = 0;
        sc->cache_enable = 0;
        sc->get_syncflt = 0;
-       sc->cache_flush = 0;
-       sc->vcache_flush_page = 0;
-       sc->vcache_flush_segment = 0;
-       sc->vcache_flush_region = 0;
-       sc->vcache_flush_context = 0;
+       sc->sp_cache_flush = 0;
+       sc->sp_vcache_flush_page = 0;
+       sc->sp_vcache_flush_segment = 0;
+       sc->sp_vcache_flush_region = 0;
+       sc->sp_vcache_flush_context = 0;
        sc->pcache_flush_line = 0;
 }
 



Home | Main Index | Thread Index | Old Index