Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Revert to unmanaged x86 memory mapped i...
details: https://anonhg.NetBSD.org/src/rev/4cc22a3caff6
branches: trunk
changeset: 781382:4cc22a3caff6
user: cherry <cherry%NetBSD.org@localhost>
date: Mon Sep 03 05:01:44 2012 +0000
description:
Revert to unmanaged x86 memory mapped isa and pci space.
This is a revert of commit r1.169:
http://mail-index.netbsd.org/source-changes/2011/11/06/msg028702.html
This should allow X to run on NetBSD/xen amd64 dom0, and fixes PR #46634
diffstat:
sys/arch/amd64/amd64/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r deb8d0dc6ab2 -r 4cc22a3caff6 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Sun Sep 02 21:14:56 2012 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Mon Sep 03 05:01:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.189 2012/07/15 15:17:56 dsl Exp $ */
+/* $NetBSD: machdep.c,v 1.190 2012/09/03 05:01:44 cherry Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.189 2012/07/15 15:17:56 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.190 2012/09/03 05:01:44 cherry Exp $");
/* #define XENDEBUG_LOW */
@@ -1723,8 +1723,8 @@
/* Determine physical address space */
avail_start = first_avail;
avail_end = ctob(xen_start_info.nr_pages);
- pmap_pa_start = 0;
- pmap_pa_end = pmap_pa_start + ctob(xen_start_info.nr_pages);
+ pmap_pa_start = (KERNTEXTOFF - KERNBASE);
+ pmap_pa_end = avail_end;
__PRINTK(("pmap_pa_start 0x%lx avail_start 0x%lx avail_end 0x%lx\n",
pmap_pa_start, avail_start, avail_end));
#endif /* !XEN */
Home |
Main Index |
Thread Index |
Old Index