Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/hp300 Fix a build error on a kernel config wi...



details:   https://anonhg.NetBSD.org/src/rev/b17265a113d3
branches:  trunk
changeset: 790141:b17265a113d3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 21 06:24:43 2013 +0000

description:
Fix a build error on a kernel config without 68040 machines.

Reported by Andrew Gillham on port-hp300@:
http://mail-index.NetBSD.org/port-hp300/2013/09/09/msg000077.html
(I removed defined(68060) since hp300 doesn't have it)

Should be pulled up to netbsd-6.

diffstat:

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

diffs (29 lines):

diff -r ae4be5d10cc0 -r b17265a113d3 sys/arch/hp300/hp300/pmap_bootstrap.c
--- a/sys/arch/hp300/hp300/pmap_bootstrap.c     Fri Sep 20 23:19:52 2013 +0000
+++ b/sys/arch/hp300/hp300/pmap_bootstrap.c     Sat Sep 21 06:24:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.57 2012/02/10 06:28:39 mhitch Exp $       */
+/*     $NetBSD: pmap_bootstrap.c,v 1.58 2013/09/21 06:24:43 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.57 2012/02/10 06:28:39 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.58 2013/09/21 06:24:43 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -411,8 +411,10 @@
         */
        RELOC(Sysseg, st_entry_t *) = (st_entry_t *)(kstpa - firstpa);
        RELOC(Sysseg_pa, paddr_t) = kstpa;
+#if defined(M68040)
        if (RELOC(mmutype, int) == MMU_68040)
                RELOC(protostfree, u_int) = stfree;
+#endif
        /*
         * Sysptmap: base of kernel page table map
         */



Home | Main Index | Thread Index | Old Index