Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/pic don't call mapiodev() - the caller shou...



details:   https://anonhg.NetBSD.org/src/rev/714c067b4b3b
branches:  trunk
changeset: 831333:714c067b4b3b
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Mar 22 21:27:36 2018 +0000

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

diffstat:

 sys/arch/powerpc/pic/pic_openpic.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f6ef034cac6f -r 714c067b4b3b sys/arch/powerpc/pic/pic_openpic.c
--- a/sys/arch/powerpc/pic/pic_openpic.c        Thu Mar 22 21:26:27 2018 +0000
+++ b/sys/arch/powerpc/pic/pic_openpic.c        Thu Mar 22 21:27:36 2018 +0000
@@ -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 @@
        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;
 



Home | Main Index | Thread Index | Old Index