Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev use _PREFETCHABLE



details:   https://anonhg.NetBSD.org/src/rev/5e42ab0978ef
branches:  trunk
changeset: 359597:5e42ab0978ef
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Feb 16 18:13:47 2018 +0000

description:
use _PREFETCHABLE

diffstat:

 sys/arch/macppc/dev/valkyriefb.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 8f7f3df9a064 -r 5e42ab0978ef sys/arch/macppc/dev/valkyriefb.c
--- a/sys/arch/macppc/dev/valkyriefb.c  Fri Feb 16 18:12:45 2018 +0000
+++ b/sys/arch/macppc/dev/valkyriefb.c  Fri Feb 16 18:13:47 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: valkyriefb.c,v 1.4 2016/07/06 13:30:42 macallan Exp $  */
+/*     $NetBSD: valkyriefb.c,v 1.5 2018/02/16 18:13:47 macallan Exp $  */
 
 /*
  * Copyright (c) 2012 Michael Lorenz
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: valkyriefb.c,v 1.4 2016/07/06 13:30:42 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: valkyriefb.c,v 1.5 2018/02/16 18:13:47 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -43,6 +43,9 @@
 
 #include <machine/autoconf.h>
 
+#include <uvm/uvm_extern.h>
+#include <powerpc/oea/pmap.h>
+
 #include <dev/wscons/wsdisplayvar.h>
 #include <dev/wscons/wsconsio.h>
 #include <dev/wsfont/wsfont.h>
@@ -402,6 +405,7 @@
        /* 'regular' framebuffer mmap()ing */
        if (offset < 0x100000) {
                pa = (paddr_t)(sc->sc_base + 0x1000 + offset);  
+               pa |= POWERPC_MMAP_FLAG_PREFETCHABLE;
                return pa;
        }
        return -1;



Home | Main Index | Thread Index | Old Index