Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix up uarea page mapping compile conditi...



details:   https://anonhg.NetBSD.org/src/rev/a771a10918dd
branches:  trunk
changeset: 816883:a771a10918dd
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jul 31 15:33:42 2016 +0000

description:
Fix up uarea page mapping compile conditional - we only need code if
USPACE is > PAGE_SIZE.

diffstat:

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

diffs (27 lines):

diff -r b285116ce6df -r a771a10918dd sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Sun Jul 31 13:01:29 2016 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Sun Jul 31 15:33:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.149 2016/07/30 06:20:54 matt Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.150 2016/07/31 15:33:42 skrll Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.149 2016/07/30 06:20:54 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.150 2016/07/31 15:33:42 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_coredump.h"
@@ -115,7 +115,7 @@
                tf->tf_regs[_R_SP] = (intptr_t)stack + stacksize;
 
        l2->l_md.md_utf = tf;
-#if (USPACE > PAGE_SIZE) || !defined(_LP64)
+#if (USPACE > PAGE_SIZE)
        if (!pmap_md_direct_mapped_vaddr_p(ua2)) {
                __CTASSERT((PGSHIFT & 1) || UPAGES % 2 == 0);
                pt_entry_t * const pte = pmap_pte_lookup(pmap_kernel(), ua2);



Home | Main Index | Thread Index | Old Index