Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/isa Fix an ancient typo, instead of setting the base...



details:   https://anonhg.NetBSD.org/src/rev/5dfd42907662
branches:  trunk
changeset: 322176:5dfd42907662
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Apr 21 15:10:28 2018 +0000

description:
Fix an ancient typo, instead of setting the base address, the size
value is written leaving the autoconf setting (-1) as the address.
The value is only used for printing an attach message, the actual
pcdisplay_init code uses hard coded base addresses again.

diffstat:

 sys/dev/isa/pcdisplay.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b256b0eb0d63 -r 5dfd42907662 sys/dev/isa/pcdisplay.c
--- a/sys/dev/isa/pcdisplay.c   Sat Apr 21 13:22:06 2018 +0000
+++ b/sys/dev/isa/pcdisplay.c   Sat Apr 21 15:10:28 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcdisplay.c,v 1.42 2016/07/14 04:19:27 msaitoh Exp $ */
+/* $NetBSD: pcdisplay.c,v 1.43 2018/04/21 15:10:28 mlelstv Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcdisplay.c,v 1.42 2016/07/14 04:19:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcdisplay.c,v 1.43 2018/04/21 15:10:28 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -269,7 +269,7 @@
        ia->ia_io[0].ir_size = 0x10;
 
        ia->ia_niomem = 1;
-       ia->ia_iomem[0].ir_size = mono ? 0xb0000 : 0xb8000;
+       ia->ia_iomem[0].ir_addr = mono ? 0xb0000 : 0xb8000;
        ia->ia_iomem[0].ir_size = 0x8000;
 
        ia->ia_nirq = 0;



Home | Main Index | Thread Index | Old Index