Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Declare or #define avail_start and avail_end as app...



details:   https://anonhg.NetBSD.org/src/rev/66107dce4f36
branches:  trunk
changeset: 808986:66107dce4f36
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 11 15:11:13 2015 +0000

description:
Declare or #define avail_start and avail_end as appropriate

diffstat:

 sys/arch/evbsh3/include/kloader.h       |  3 ++-
 sys/arch/landisk/include/kloader.h      |  3 ++-
 sys/arch/playstation2/include/kloader.h |  6 +++++-
 sys/arch/zaurus/include/kloader.h       |  3 ++-
 4 files changed, 11 insertions(+), 4 deletions(-)

diffs (68 lines):

diff -r ae7de656a81d -r 66107dce4f36 sys/arch/evbsh3/include/kloader.h
--- a/sys/arch/evbsh3/include/kloader.h Thu Jun 11 15:08:27 2015 +0000
+++ b/sys/arch/evbsh3/include/kloader.h Thu Jun 11 15:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kloader.h,v 1.1 2010/04/06 15:54:30 nonaka Exp $       */
+/*     $NetBSD: kloader.h,v 1.2 2015/06/11 15:11:13 matt Exp $ */
 
 /*-
  * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
@@ -32,6 +32,7 @@
 #define PG_VADDR(pg)   SH3_PHYS_TO_P1SEG(VM_PAGE_TO_PHYS(pg))
 
 #define        KLOADER_NO_BOOTINFO
+extern paddr_t avail_start, avail_end;
 
 #include <dev/kloader.h>
 
diff -r ae7de656a81d -r 66107dce4f36 sys/arch/landisk/include/kloader.h
--- a/sys/arch/landisk/include/kloader.h        Thu Jun 11 15:08:27 2015 +0000
+++ b/sys/arch/landisk/include/kloader.h        Thu Jun 11 15:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kloader.h,v 1.2 2008/04/28 20:23:26 martin Exp $       */
+/*     $NetBSD: kloader.h,v 1.3 2015/06/11 15:11:14 matt Exp $ */
 
 /*-
  * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
@@ -30,6 +30,7 @@
 #define        _LANDISK_KLOADER_H_
 
 #define PG_VADDR(pg)   SH3_PHYS_TO_P1SEG(VM_PAGE_TO_PHYS(pg))
+extern paddr_t avail_start, avail_end;
 
 #include <dev/kloader.h>
 
diff -r ae7de656a81d -r 66107dce4f36 sys/arch/playstation2/include/kloader.h
--- a/sys/arch/playstation2/include/kloader.h   Thu Jun 11 15:08:27 2015 +0000
+++ b/sys/arch/playstation2/include/kloader.h   Thu Jun 11 15:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kloader.h,v 1.5 2014/03/31 11:25:49 martin Exp $       */
+/*     $NetBSD: kloader.h,v 1.6 2015/06/11 15:11:14 matt Exp $ */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,3 +30,7 @@
 #define        KLOADER_NO_BOOTINFO
 #define PG_VADDR(pg)   MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg))
 #include <dev/kloader.h>
+
+/* XXX: kludge: MI kloader.c assumes avail_start and avail_end are common */
+#define avail_start    pmap_limits.avail_start
+#define avail_end      pmap_limits.avail_end
diff -r ae7de656a81d -r 66107dce4f36 sys/arch/zaurus/include/kloader.h
--- a/sys/arch/zaurus/include/kloader.h Thu Jun 11 15:08:27 2015 +0000
+++ b/sys/arch/zaurus/include/kloader.h Thu Jun 11 15:11:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kloader.h,v 1.1 2009/03/11 09:02:04 nonaka Exp $       */
+/*     $NetBSD: kloader.h,v 1.2 2015/06/11 15:11:14 matt Exp $ */
 
 /*-
  * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
@@ -44,6 +44,7 @@
 
 #define PG_VADDR(pg)   kloader_phystov(VM_PAGE_TO_PHYS(pg))
 vaddr_t kloader_phystov(paddr_t pa);
+extern paddr_t avail_start, avail_end;
 
 #include <dev/kloader.h>
 



Home | Main Index | Thread Index | Old Index