9c8a08c9c7a0f7ec591042abd5b4a0fb50c028f1.patch 857 B

123456789101112131415161718192021222324252627282930
  1. From 9c8a08c9c7a0f7ec591042abd5b4a0fb50c028f1 Mon Sep 17 00:00:00 2001
  2. From: Nick Hudson <skrll@NetBSD.org>
  3. Date: Mon, 28 Sep 2015 22:49:21 +0200
  4. Subject: Increase BIOS_BSIZE.
  5. libpciaccess expects a much bigger buffer when reading ROM.
  6. Bump it to the (normal) IO space size.
  7. Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
  8. ---
  9. src/s3v_driver.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/src/s3v_driver.c b/src/s3v_driver.c
  12. index d519dc8..e5dd2e4 100644
  13. --- a/src/s3v_driver.c
  14. +++ b/src/s3v_driver.c
  15. @@ -316,7 +316,7 @@ s3virgeSetup(pointer module, pointer opts, int *errmaj, int *errmin)
  16. static unsigned char *find_bios_string(S3VPtr ps3v, int BIOSbase, char *match1, char *match2)
  17. {
  18. -#define BIOS_BSIZE 1024
  19. +#define BIOS_BSIZE 0x10000
  20. #define BIOS_BASE 0xc0000
  21. static unsigned char bios[BIOS_BSIZE];
  22. --
  23. cgit v1.1