Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/x68k Fix build without EXTENDED_MEMORY.



details:   https://anonhg.NetBSD.org/src/rev/c5d3daa8c4d4
branches:  trunk
changeset: 368132:c5d3daa8c4d4
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Jun 25 08:19:01 2022 +0000

description:
Fix build without EXTENDED_MEMORY.

diffstat:

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

diffs (28 lines):

diff -r 4496025761d7 -r c5d3daa8c4d4 sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c      Sat Jun 25 06:51:37 2022 +0000
+++ b/sys/arch/x68k/x68k/machdep.c      Sat Jun 25 08:19:01 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.207 2021/10/09 20:00:42 tsutsui Exp $    */
+/*     $NetBSD: machdep.c,v 1.208 2022/06/25 08:19:01 isaki Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.207 2021/10/09 20:00:42 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.208 2022/06/25 08:19:01 isaki Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1256,7 +1256,9 @@
 int
 mm_md_physacc(paddr_t pa, vm_prot_t prot)
 {
+#ifdef EXTENDED_MEMORY
        int i;
+#endif
 
        /* Main memory */
        if (phys_basemem_seg.start <= pa && pa < phys_basemem_seg.end)



Home | Main Index | Thread Index | Old Index