Module Name:    src
Committed By:   skrll
Date:           Sat Dec 28 16:48:32 UTC 2024

Modified Files:
        src/sys/arch/hppa/dev: elroy.c

Log Message:
hppa: elroy: support mmap

X works, but has weird colours.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/hppa/dev/elroy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hppa/dev/elroy.c
diff -u src/sys/arch/hppa/dev/elroy.c:1.7 src/sys/arch/hppa/dev/elroy.c:1.8
--- src/sys/arch/hppa/dev/elroy.c:1.7	Sun Jan 28 09:03:22 2024
+++ src/sys/arch/hppa/dev/elroy.c	Sat Dec 28 16:48:32 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: elroy.c,v 1.7 2024/01/28 09:03:22 macallan Exp $	*/
+/*	$NetBSD: elroy.c,v 1.8 2024/12/28 16:48:32 skrll Exp $	*/
 
 /*	$OpenBSD: elroy.c,v 1.5 2009/03/30 21:24:57 kettenis Exp $	*/
 
@@ -500,8 +500,7 @@ elroy_vaddr(void *v, bus_space_handle_t 
 paddr_t
 elroy_mmap(void *v, bus_addr_t addr, off_t off, int prot, int flags)
 {
-
-	return -1;
+	return btop(addr + off);
 }
 
 uint8_t

Reply via email to