Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm Fix thinko in kern_vtopdiff calculation



details:   https://anonhg.NetBSD.org/src/rev/b25d048d04fc
branches:  trunk
changeset: 957423:b25d048d04fc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 28 14:02:30 2020 +0000

description:
Fix thinko in kern_vtopdiff calculation

diffstat:

 sys/arch/evbarm/gemini/gemini_machdep.c                   |  6 +++---
 sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c |  4 ++--
 sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c               |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r d3238efc7669 -r b25d048d04fc sys/arch/evbarm/gemini/gemini_machdep.c
--- a/sys/arch/evbarm/gemini/gemini_machdep.c   Sat Nov 28 14:02:09 2020 +0000
+++ b/sys/arch/evbarm/gemini/gemini_machdep.c   Sat Nov 28 14:02:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gemini_machdep.c,v 1.32 2020/11/26 12:56:34 skrll Exp $        */
+/*     $NetBSD: gemini_machdep.c,v 1.33 2020/11/28 14:02:30 skrll Exp $        */
 
 /* adapted from:
  *     NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp
@@ -129,7 +129,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.32 2020/11/26 12:56:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.33 2020/11/28 14:02:30 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_console.h"
@@ -630,7 +630,7 @@
        bootconfig.dram[0].address = physical_start;
        bootconfig.dram[0].pages = physmem;
 
-       kern_vtopdiff = KERNEL_BASE + GEMINI_DRAM_BASE;
+       kern_vtopdiff = KERNEL_BASE - GEMINI_DRAM_BASE;
 
        /*
         * Our kernel is at the beginning of memory, so set our free space to
diff -r d3238efc7669 -r b25d048d04fc sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c
--- a/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c Sat Nov 28 14:02:09 2020 +0000
+++ b/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c Sat Nov 28 14:02:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $Id: imx23_olinuxino_machdep.c,v 1.10 2020/11/26 12:56:34 skrll Exp $ */
+/* $Id: imx23_olinuxino_machdep.c,v 1.11 2020/11/28 14:02:30 skrll Exp $ */
 
 /*
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
        if (set_cpufuncs())
                panic("set_cpufuncs failed");
 
-       kern_vtopdiff = KERNEL_BASE + KERNEL_BASE_PHYS;
+       kern_vtopdiff = KERNEL_BASE - KERNEL_BASE_PHYS;
 
        pmap_devmap_register(devmap);
        consinit();
diff -r d3238efc7669 -r b25d048d04fc sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c
--- a/sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c       Sat Nov 28 14:02:09 2020 +0000
+++ b/sys/arch/evbarm/tisdp24xx/sdp24xx_machdep.c       Sat Nov 28 14:02:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdp24xx_machdep.c,v 1.25 2019/07/16 14:41:48 skrll Exp $ */
+/*     $NetBSD: sdp24xx_machdep.c,v 1.26 2020/11/28 14:02:30 skrll Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.25 2019/07/16 14:41:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.26 2020/11/28 14:02:30 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_console.h"
@@ -213,7 +213,7 @@
 #define KERNEL_BASE_PHYS ((paddr_t)&KERNEL_BASE_phys)
 
 #if 0
-u_long kern_vtopdiff = KERNEL_BASE + KERNEL_BASE_PHYS;
+u_long kern_vtopdiff = KERNEL_BASE - KERNEL_BASE_PHYS;
 #else
 u_long kern_vtopdiff = 0;
 #endif



Home | Main Index | Thread Index | Old Index