Module Name: src
Committed By: abs
Date: Mon May 14 08:44:14 UTC 2012
Modified Files:
src/sys/arch/vax/boot/boot: Makefile
src/sys/arch/vax/vsa: spx.c
Log Message:
>From the "why was this not done before" box:
Implement WSDISPLAYIO_LINEBYTES so xwsfb works
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/vax/boot/boot/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/vsa/spx.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/boot/boot/Makefile
diff -u src/sys/arch/vax/boot/boot/Makefile:1.38 src/sys/arch/vax/boot/boot/Makefile:1.39
--- src/sys/arch/vax/boot/boot/Makefile:1.38 Sat Jan 22 19:19:24 2011
+++ src/sys/arch/vax/boot/boot/Makefile Mon May 14 08:44:13 2012
@@ -1,9 +1,12 @@
-# $NetBSD: Makefile,v 1.38 2011/01/22 19:19:24 joerg Exp $
+# $NetBSD: Makefile,v 1.39 2012/05/14 08:44:13 abs Exp $
S= ${.CURDIR}/../../../..
.include <bsd.own.mk>
+COPTS.boot.c = -O2 -fno-reorder-blocks
+COPTS.devopen.c = -O2 -fno-reorder-blocks
+
PROG= boot
DEVS= hp.c ctu.c ra.c mfm.c if_qe.c if_le.c if_ze.c if_de.c if_ni.c
SRCS= srt0.S boot.c devopen.c conf.c autoconf.c netio.c rom.c romread.S \
Index: src/sys/arch/vax/vsa/spx.c
diff -u src/sys/arch/vax/vsa/spx.c:1.5 src/sys/arch/vax/vsa/spx.c:1.6
--- src/sys/arch/vax/vsa/spx.c:1.5 Wed Jan 11 21:26:13 2012
+++ src/sys/arch/vax/vsa/spx.c Mon May 14 08:44:13 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: spx.c,v 1.5 2012/01/11 21:26:13 macallan Exp $ */
+/* $NetBSD: spx.c,v 1.6 2012/05/14 08:44:13 abs Exp $ */
/*
* SPX/LCSPX/SPXg/SPXgt accelerated framebuffer driver for NetBSD/VAX
* Copyright (c) 2005 Blaz Antonic
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.5 2012/01/11 21:26:13 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.6 2012/05/14 08:44:13 abs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1023,6 +1023,10 @@ spx_ioctl(void *v, void *vs, u_long cmd,
WSDISPLAYIO_VIDEO_ON : WSDISPLAYIO_VIDEO_OFF;
break;
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = spx_xsize;
+ break;
+
default:
return EPASSTHROUGH;
}