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 Simplify netbsd32_vm_default_addr (for no...



details:   https://anonhg.NetBSD.org/src/rev/a2675379f70f
branches:  trunk
changeset: 326411:a2675379f70f
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 28 18:56:46 2014 +0000

description:
Simplify netbsd32_vm_default_addr (for now) to make it compilable.

diffstat:

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

diffs (23 lines):

diff -r 05265639dee3 -r a2675379f70f sys/arch/arm/arm32/netbsd32_machdep.c
--- a/sys/arch/arm/arm32/netbsd32_machdep.c     Tue Jan 28 17:46:01 2014 +0000
+++ b/sys/arch/arm/arm32/netbsd32_machdep.c     Tue Jan 28 18:56:46 2014 +0000
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.4 2014/01/26 00:21:18 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.5 2014/01/28 18:56:46 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/core.h>
@@ -93,9 +93,5 @@
 vaddr_t
 netbsd32_vm_default_addr(struct proc *p, vaddr_t base, vsize_t 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);
-
+       return round_page((vaddr_t)(base) + (vsize_t)MAXDSIZ32);
 }



Home | Main Index | Thread Index | Old Index