Module Name: src
Committed By: martin
Date: Sat Feb 3 12:56:02 UTC 2024
Modified Files:
src/sys/arch/vax/vsa [netbsd-10]: smg.c
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #569):
sys/arch/vax/vsa/smg.c: revision 1.66
Fix mmap(2) address for smg(4) as other framebuffers.
Now X.org server can render onto framebuffer (but inverted bitorder).
To generate a diff of this commit:
cvs rdiff -u -r1.61.6.3 -r1.61.6.4 src/sys/arch/vax/vsa/smg.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/vax/vsa/smg.c
diff -u src/sys/arch/vax/vsa/smg.c:1.61.6.3 src/sys/arch/vax/vsa/smg.c:1.61.6.4
--- src/sys/arch/vax/vsa/smg.c:1.61.6.3 Wed Feb 15 19:14:50 2023
+++ src/sys/arch/vax/vsa/smg.c Sat Feb 3 12:56:02 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: smg.c,v 1.61.6.3 2023/02/15 19:14:50 martin Exp $ */
+/* $NetBSD: smg.c,v 1.61.6.4 2024/02/03 12:56:02 martin Exp $ */
/* $OpenBSD: smg.c,v 1.28 2014/12/23 21:39:12 miod Exp $ */
/*
* Copyright (c) 2006, Miodrag Vallat
@@ -117,7 +117,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smg.c,v 1.61.6.3 2023/02/15 19:14:50 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smg.c,v 1.61.6.4 2024/02/03 12:56:02 martin Exp $");
#include "dzkbd.h"
#include "wsdisplay.h"
@@ -475,7 +475,7 @@ smg_mmap(void *v, void *vs, off_t offset
if (offset >= SMSIZE || offset < 0)
return -1;
- return SMADDR + offset;
+ return (SMADDR + offset) >> PGSHIFT;
}
static int