DTRT when initialising pmap_pa_end.

This commit is contained in:
cherry 2011-11-06 15:35:29 +00:00
parent b6cafb52cb
commit be86218e1b

View File

@ -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 @@ init386(paddr_t first_avail)
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++;