Module Name:    src
Committed By:   macallan
Date:           Thu Mar 22 21:27:36 UTC 2018

Modified Files:
        src/sys/arch/powerpc/pic: pic_openpic.c

Log Message:
don't call mapiodev() - the caller should hand us a usable address


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/pic/pic_openpic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/pic/pic_openpic.c
diff -u src/sys/arch/powerpc/pic/pic_openpic.c:1.12 src/sys/arch/powerpc/pic/pic_openpic.c:1.13
--- src/sys/arch/powerpc/pic/pic_openpic.c:1.12	Fri Mar  2 19:36:19 2018
+++ src/sys/arch/powerpc/pic/pic_openpic.c	Thu Mar 22 21:27:36 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: pic_openpic.c,v 1.12 2018/03/02 19:36:19 macallan Exp $ */
+/*	$NetBSD: pic_openpic.c,v 1.13 2018/03/22 21:27:36 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic_openpic.c,v 1.12 2018/03/02 19:36:19 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic_openpic.c,v 1.13 2018/03/22 21:27:36 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -54,7 +54,7 @@ setup_openpic(void *addr, int passthroug
 	int irq;
 	u_int x;
 
-	openpic_base = mapiodev((paddr_t)addr, 0x40000, false);
+	openpic_base = addr;
 	opicops = kmem_alloc(sizeof(*opicops), KM_SLEEP);
 	pic = &opicops->pic;
 

Reply via email to