Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 use the topdown hint.



details:   https://anonhg.NetBSD.org/src/rev/577a138e8676
branches:  trunk
changeset: 793073:577a138e8676
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 25 23:11:08 2014 +0000

description:
use the topdown hint.

diffstat:

 sys/arch/arm/arm32/netbsd32_machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 5bc60e7c912c -r 577a138e8676 sys/arch/arm/arm32/netbsd32_machdep.c
--- a/sys/arch/arm/arm32/netbsd32_machdep.c     Sat Jan 25 21:11:20 2014 +0000
+++ b/sys/arch/arm/arm32/netbsd32_machdep.c     Sat Jan 25 23:11:08 2014 +0000
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.2 2014/01/01 18:57:15 dsl Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.3 2014/01/25 23:11:08 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/core.h>
@@ -93,5 +93,9 @@
 vaddr_t
 netbsd32_vm_default_addr(struct proc *p, vaddr_t base, vsize_t size)
 {
-       return VM_DEFAULT_ADDRESS(base, size);
+        if (p->p_vmspace->vm_map.flags & VM_MAP_TOPDOWN)
+                return VM_DEFAULT_ADDRESS32_TOPDOWN(base, sz);
+        else    
+                return VM_DEFAULT_ADDRESS32_BOTTOMUP(base, sz);
+
 }



Home | Main Index | Thread Index | Old Index