Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 DTRT when initialising pmap_pa_end.



details:   https://anonhg.NetBSD.org/src/rev/5022a5b4cdd9
branches:  trunk
changeset: 771029:5022a5b4cdd9
user:      cherry <cherry%NetBSD.org@localhost>
date:      Sun Nov 06 15:35:29 2011 +0000

description:
DTRT when initialising pmap_pa_end.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9597ae9479b6 -r 5022a5b4cdd9 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Sun Nov 06 15:19:31 2011 +0000
+++ b/sys/arch/i386/i386/machdep.c      Sun Nov 06 15:35:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.710 2011/11/06 11:40:46 cherry Exp $     */
+/*     $NetBSD: machdep.c,v 1.711 2011/11/06 15:35:29 cherry Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.710 2011/11/06 11:40:46 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.711 2011/11/06 15:35:29 cherry Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1440,7 +1440,7 @@
        avail_start = first_avail;
        avail_end = ctob(xen_start_info.nr_pages) + XPMAP_OFFSET;
        pmap_pa_start = (KERNTEXTOFF - KERNBASE);
-       pmap_pa_end = avail_end;
+       pmap_pa_end = pmap_pa_start + ctob(xen_start_info.nr_pages);
        mem_clusters[0].start = avail_start;
        mem_clusters[0].size = avail_end - avail_start;
        mem_cluster_cnt++;



Home | Main Index | Thread Index | Old Index