Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/zynq Make PARALLELLA build
details: https://anonhg.NetBSD.org/src/rev/fa4750284e2b
branches: trunk
changeset: 365369:fa4750284e2b
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Aug 12 20:28:38 2018 +0000
description:
Make PARALLELLA build
diffstat:
sys/arch/evbarm/zynq/zynq_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 7276a76b2a1c -r fa4750284e2b sys/arch/evbarm/zynq/zynq_machdep.c
--- a/sys/arch/evbarm/zynq/zynq_machdep.c Sun Aug 12 20:16:10 2018 +0000
+++ b/sys/arch/evbarm/zynq/zynq_machdep.c Sun Aug 12 20:28:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zynq_machdep.c,v 1.2 2018/07/17 18:41:01 christos Exp $ */
+/* $NetBSD: zynq_machdep.c,v 1.3 2018/08/12 20:28:38 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.2 2018/07/17 18:41:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.3 2018/08/12 20:28:38 skrll Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_arm_debug.h"
@@ -78,8 +78,6 @@
* kernel address space. *Not* for general use.
*/
#define KERN_VTOPDIFF ((vaddr_t)KERNEL_BASE_phys - (vaddr_t)KERNEL_BASE_virt)
-#define KERN_VTOPHYS(va) ((paddr_t)((vaddr_t)va + (vaddr_t)KERN_VTOPDIFF))
-#define KERN_PHYSTOV(pa) ((vaddr_t)((paddr_t)pa - (vaddr_t)KERN_VTOPDIFF))
#ifndef CONADDR
#define CONADDR (UART1_BASE)
@@ -147,6 +145,8 @@
u_int
initarm(void *arg)
{
+ kern_vtopdiff = KERN_VTOPDIFF;
+
pmap_devmap_register(devmap);
zynq7000_bootstrap(KERNEL_IO_IOREG_VBASE);
Home |
Main Index |
Thread Index |
Old Index