Module Name: src Committed By: tsutsui Date: Tue Mar 2 15:01:04 UTC 2010
Modified Files: src/sys/arch/mac68k/mac68k: pmap_bootstrap.c Log Message: A variable protostfree is only declared for M68040 or M68060 kernels, so it should also be wrapped with #ifdef M68040/#endif in MD sources. Fixes build error on SMALLRAM kernel, reported by ha...@. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/arch/mac68k/mac68k/pmap_bootstrap.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/mac68k/mac68k/pmap_bootstrap.c diff -u src/sys/arch/mac68k/mac68k/pmap_bootstrap.c:1.87 src/sys/arch/mac68k/mac68k/pmap_bootstrap.c:1.88 --- src/sys/arch/mac68k/mac68k/pmap_bootstrap.c:1.87 Fri Dec 11 22:23:09 2009 +++ src/sys/arch/mac68k/mac68k/pmap_bootstrap.c Tue Mar 2 15:01:04 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap_bootstrap.c,v 1.87 2009/12/11 22:23:09 tsutsui Exp $ */ +/* $NetBSD: pmap_bootstrap.c,v 1.88 2010/03/02 15:01:04 tsutsui Exp $ */ /* * Copyright (c) 1991, 1993 @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.87 2009/12/11 22:23:09 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.88 2010/03/02 15:01:04 tsutsui Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -423,8 +423,10 @@ */ Sysseg = PA2VA(kstpa, st_entry_t *); Sysseg_pa = PA2VA(kstpa, paddr_t); +#if defined(M68040) if (mmutype == MMU_68040) protostfree = stfree; +#endif /* * Sysptmap: base of kernel page table map */