Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/imx23_olinuxino Fix IMX23_OLINUXINO build



details:   https://anonhg.NetBSD.org/src/rev/29f0ad0fa08a
branches:  trunk
changeset: 363833:29f0ad0fa08a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Aug 12 20:13:13 2018 +0000

description:
Fix IMX23_OLINUXINO build

diffstat:

 sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 17ab37f9cfa3 -r 29f0ad0fa08a sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c
--- a/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c Sun Aug 12 19:48:36 2018 +0000
+++ b/sys/arch/evbarm/imx23_olinuxino/imx23_olinuxino_machdep.c Sun Aug 12 20:13:13 2018 +0000
@@ -1,4 +1,4 @@
-/* $Id: imx23_olinuxino_machdep.c,v 1.7 2018/07/31 06:46:26 skrll Exp $ */
+/* $Id: imx23_olinuxino_machdep.c,v 1.8 2018/08/12 20:13:13 skrll Exp $ */
 
 /*
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -87,10 +87,6 @@
 
 #define KERNEL_BASE_PHYS ((paddr_t)&KERNEL_BASE_phys)
 #define KERNEL_BASE_VIRT ((vaddr_t)&KERNEL_BASE_virt)
-#define KERN_VTOPHYS(va) \
-        ((paddr_t)((vaddr_t)(va) - KERNEL_BASE + KERNEL_BASE_PHYS))
-#define KERN_PHYSTOV(pa) \
-        ((vaddr_t)((paddr_t)(pa) + KERNEL_BASE_VIRT + KERNEL_BASE))
 
 /*
  * Static device map for i.MX23 peripheral address space.
@@ -142,6 +138,8 @@
        if (set_cpufuncs())
                panic("set_cpufuncs failed");
 
+       kern_vtopdiff = KERNEL_BASE + KERNEL_BASE_PHYS;
+
        pmap_devmap_register(devmap);
        consinit();
 



Home | Main Index | Thread Index | Old Index