Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa support *_mmap()



details:   https://anonhg.NetBSD.org/src/rev/298823835bec
branches:  trunk
changeset: 940759:298823835bec
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Oct 16 17:50:44 2020 +0000

description:
support *_mmap()

diffstat:

 sys/arch/hppa/hppa/mainbus.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 3ccea92938aa -r 298823835bec sys/arch/hppa/hppa/mainbus.c
--- a/sys/arch/hppa/hppa/mainbus.c      Fri Oct 16 16:48:07 2020 +0000
+++ b/sys/arch/hppa/hppa/mainbus.c      Fri Oct 16 17:50:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.4 2019/04/26 18:37:24 skrll Exp $        */
+/*     $NetBSD: mainbus.c,v 1.5 2020/10/16 17:50:44 macallan Exp $     */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4 2019/04/26 18:37:24 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.5 2020/10/16 17:50:44 macallan Exp $");
 
 #include "locators.h"
 #include "power.h"
@@ -354,8 +354,7 @@
 paddr_t
 mbus_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