Source-Changes-HG archive

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

[src/cherry-xenmp]: src/sys/arch/xen/xen pmap_enter() test needs an address t...



details:   https://anonhg.NetBSD.org/src/rev/e67f1a6e312b
branches:  cherry-xenmp
changeset: 765624:e67f1a6e312b
user:      cherry <cherry%NetBSD.org@localhost>
date:      Fri Aug 05 17:26:27 2011 +0000

description:
pmap_enter() test needs an address that work for both i386 and amd64

diffstat:

 sys/arch/xen/xen/xentests.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 8458a51aeb7d -r e67f1a6e312b sys/arch/xen/xen/xentests.c
--- a/sys/arch/xen/xen/xentests.c       Thu Aug 04 13:04:20 2011 +0000
+++ b/sys/arch/xen/xen/xentests.c       Fri Aug 05 17:26:27 2011 +0000
@@ -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;
 



Home | Main Index | Thread Index | Old Index