Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/mac68k A variable protostfree is only declar...



details:   https://anonhg.NetBSD.org/src/rev/6e332be9bada
branches:  trunk
changeset: 752618:6e332be9bada
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Mar 02 15:01:04 2010 +0000

description:
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 hauke@.

diffstat:

 sys/arch/mac68k/mac68k/pmap_bootstrap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r c05549519f37 -r 6e332be9bada sys/arch/mac68k/mac68k/pmap_bootstrap.c
--- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Tue Mar 02 14:45:55 2010 +0000
+++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Tue Mar 02 15:01:04 2010 +0000
@@ -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
         */



Home | Main Index | Thread Index | Old Index