Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/dev support mmap()



details:   https://anonhg.NetBSD.org/src/rev/5f400c1700b5
branches:  trunk
changeset: 1015450:5f400c1700b5
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Oct 23 22:14:47 2020 +0000

description:
support mmap()

diffstat:

 sys/arch/hppa/dev/dino.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d261236d391e -r 5f400c1700b5 sys/arch/hppa/dev/dino.c
--- a/sys/arch/hppa/dev/dino.c  Fri Oct 23 20:15:19 2020 +0000
+++ b/sys/arch/hppa/dev/dino.c  Fri Oct 23 22:14:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dino.c,v 1.9 2020/10/16 18:27:34 skrll Exp $ */
+/*     $NetBSD: dino.c,v 1.10 2020/10/23 22:14:47 macallan Exp $ */
 
 /*     $OpenBSD: dino.c,v 1.5 2004/02/13 20:39:31 mickey Exp $ */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.9 2020/10/16 18:27:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.10 2020/10/23 22:14:47 macallan Exp $");
 
 /* #include "cardbus.h" */
 
@@ -617,7 +617,7 @@
 paddr_t
 dino_mmap(void *v, bus_addr_t addr, off_t off, int prot, int flags)
 {
-       return -1;
+       return btop(addr + off);
 }
 
 uint8_t



Home | Main Index | Thread Index | Old Index