Module Name: src Committed By: uebayasi Date: Wed Jan 26 16:31:00 UTC 2011
Modified Files: src/sys/arch/mips/mips: cache.c Log Message: Fix build of malta/sbmips. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/arch/mips/mips/cache.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/cache.c diff -u src/sys/arch/mips/mips/cache.c:1.43 src/sys/arch/mips/mips/cache.c:1.44 --- src/sys/arch/mips/mips/cache.c:1.43 Wed Jan 26 01:18:54 2011 +++ src/sys/arch/mips/mips/cache.c Wed Jan 26 16:31:00 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: cache.c,v 1.43 2011/01/26 01:18:54 pooka Exp $ */ +/* $NetBSD: cache.c,v 1.44 2011/01/26 16:31:00 uebayasi Exp $ */ /* * Copyright 2001, 2002 Wasabi Systems, Inc. @@ -68,7 +68,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.43 2011/01/26 01:18:54 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.44 2011/01/26 16:31:00 uebayasi Exp $"); #include "opt_cputype.h" #include "opt_mips_cache.h" @@ -186,6 +186,7 @@ static void mips_config_cache_modern(void); #endif +#if defined(MIPS1) || defined(MIPS3) || defined(MIPS4) /* no-cache definition */ static void no_cache_op(void); static void no_cache_op_range(vaddr_t va, vsize_t size); @@ -193,6 +194,7 @@ /* no-cache implementation */ static void no_cache_op(void) {} static void no_cache_op_range(vaddr_t va, vsize_t size) {} +#endif /* * mips_dcache_compute_align: @@ -888,6 +890,7 @@ mips_dcache_compute_align(); } +#if defined(MIPS1) || defined(MIPS3) || defined(MIPS4) void mips_config_cache_emips(void) { @@ -934,6 +937,7 @@ panic("mips_config_cache: unsupported eMIPS"); } } +#endif #ifdef MIPS1 #ifdef ENABLE_MIPS_TX3900