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 use mapiodev() so this can work on G5s



details:   https://anonhg.NetBSD.org/src/rev/8985262c2732
branches:  trunk
changeset: 830231:8985262c2732
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Mar 01 16:03:02 2018 +0000

description:
use mapiodev() so this can work on G5s

diffstat:

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

diffs (27 lines):

diff -r 3fad82270bfb -r 8985262c2732 sys/arch/powerpc/pic/pic_openpic.c
--- a/sys/arch/powerpc/pic/pic_openpic.c        Thu Mar 01 14:40:57 2018 +0000
+++ b/sys/arch/powerpc/pic/pic_openpic.c        Thu Mar 01 16:03:02 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic_openpic.c,v 1.10 2017/06/01 02:45:07 chs Exp $ */
+/*     $NetBSD: pic_openpic.c,v 1.11 2018/03/01 16:03:02 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic_openpic.c,v 1.10 2017/06/01 02:45:07 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic_openpic.c,v 1.11 2018/03/01 16:03:02 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -54,7 +54,7 @@
        int irq;
        u_int x;
 
-       openpic_base = (void *)addr;
+       openpic_base = mapiodev((paddr_t)addr, 0x40000, false);
        opicops = kmem_alloc(sizeof(*opicops), KM_SLEEP);
        pic = &opicops->pic;
 



Home | Main Index | Thread Index | Old Index