Module Name: src
Committed By: cherry
Date: Fri Aug 5 17:26:27 UTC 2011
Modified Files:
src/sys/arch/xen/xen [cherry-xenmp]: xentests.c
Log Message:
pmap_enter() test needs an address that work for both i386 and amd64
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/arch/xen/xen/xentests.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/xentests.c
diff -u src/sys/arch/xen/xen/xentests.c:1.1.2.1 src/sys/arch/xen/xen/xentests.c:1.1.2.2
--- src/sys/arch/xen/xen/xentests.c:1.1.2.1 Fri Jun 3 13:27:42 2011
+++ src/sys/arch/xen/xen/xentests.c Fri Aug 5 17:26:27 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xentests.c,v 1.1.2.1 2011/06/03 13:27:42 cherry Exp $ */
+/* $NetBSD: xentests.c,v 1.1.2.2 2011/08/05 17:26:27 cherry Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xentests.c,v 1.1.2.1 2011/06/03 13:27:42 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xentests.c,v 1.1.2.2 2011/08/05 17:26:27 cherry Exp $");
#include <sys/types.h>
@@ -997,6 +997,7 @@
return result;
}
+#define USEFULLUSERLANDADDRESS 0x10000
/* pmap enter and extract */
@@ -1006,7 +1007,7 @@
KASSERT(arg != NULL);
struct test_args *ta = arg;
- vaddr_t va = 0xfeedface & ~PAGE_MASK; /* PAGE_SIZE aligned */
+ vaddr_t va = USEFULLUSERLANDADDRESS & ~PAGE_MASK; /* PAGE_SIZE aligned */
paddr_t pa;
struct vm_page *pg;