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 DTRT with macros and use xen's info pag...



details:   https://anonhg.NetBSD.org/src/rev/ee1c33060f1d
branches:  trunk
changeset: 771030:ee1c33060f1d
user:      cherry <cherry%NetBSD.org@localhost>
date:      Sun Nov 06 15:51:09 2011 +0000

description:
DTRT with macros and use xen's info page when initialising pmap_pa_start and pmap_pa_end.

diffstat:

 sys/arch/amd64/amd64/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 5022a5b4cdd9 -r ee1c33060f1d sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Sun Nov 06 15:35:29 2011 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Sun Nov 06 15:51:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.168 2011/10/31 12:42:36 yamt Exp $       */
+/*     $NetBSD: machdep.c,v 1.169 2011/11/06 15:51:09 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.168 2011/10/31 12:42:36 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.169 2011/11/06 15:51:09 cherry Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -1684,8 +1684,8 @@
        /* Determine physical address space */
        avail_start = first_avail;
        avail_end = ctob(xen_start_info.nr_pages);
-       pmap_pa_start = (KERNTEXTOFF - KERNBASE);
-       pmap_pa_end = avail_end;
+       pmap_pa_start = XPMAP_OFFSET;
+       pmap_pa_end = pmap_pa_start + ctob(xen_start_info.nr_pages);
        __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