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 Deal with 4GB overflow in arm32_kvminit.c



details:   https://anonhg.NetBSD.org/src/rev/da669d51d2fc
branches:  trunk
changeset: 808075:da669d51d2fc
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 04 00:55:30 2015 +0000

description:
Deal with 4GB overflow in arm32_kvminit.c

diffstat:

 sys/arch/arm/arm32/arm32_boot.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (33 lines):

diff -r eaee8879fce7 -r da669d51d2fc sys/arch/arm/arm32/arm32_boot.c
--- a/sys/arch/arm/arm32/arm32_boot.c   Mon May 04 00:44:12 2015 +0000
+++ b/sys/arch/arm/arm32/arm32_boot.c   Mon May 04 00:55:30 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_boot.c,v 1.14 2015/05/04 00:41:42 matt Exp $     */
+/*     $NetBSD: arm32_boot.c,v 1.15 2015/05/04 00:55:30 matt Exp $     */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -123,7 +123,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: arm32_boot.c,v 1.14 2015/05/04 00:41:42 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: arm32_boot.c,v 1.15 2015/05/04 00:55:30 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -268,14 +268,6 @@
                                        break;
                                }
                        }
-#ifndef ARM_HAS_LPAE
-                       // If memory ends at 4GB (and wraps to 0), ignore
-                       // the last page.
-                       const paddr_t fourgig = 1 << (32 - PGSHIFT);
-                       if (__predict_false(segend >= fourgig && start > 0)) {
-                               segend = fourgig - 1;
-                       }
-#endif
        
                        uvm_page_physload(start, segend, start, segend,
                            vm_freelist);



Home | Main Index | Thread Index | Old Index