[PATCH:xf86-video-s3virge 1/2] Increase BIOS_BSIZE.
Thomas Klausner
wiz at NetBSD.org
Mon Sep 28 13:49:21 PDT 2015
From: Nick Hudson <skrll at NetBSD.org>
libpciaccess expects a much bigger buffer when reading ROM.
Bump it to the (normal) IO space size.
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
src/s3v_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/s3v_driver.c b/src/s3v_driver.c
index d519dc8..e5dd2e4 100644
--- a/src/s3v_driver.c
+++ b/src/s3v_driver.c
@@ -316,7 +316,7 @@ s3virgeSetup(pointer module, pointer opts, int *errmaj, int *errmin)
static unsigned char *find_bios_string(S3VPtr ps3v, int BIOSbase, char *match1, char *match2)
{
-#define BIOS_BSIZE 1024
+#define BIOS_BSIZE 0x10000
#define BIOS_BASE 0xc0000
static unsigned char bios[BIOS_BSIZE];
--
2.5.2
More information about the xorg-devel
mailing list