NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/50849 CVS commit: src/sys/dev/tc
The following reply was made to PR kern/50849; it has been noted by GNATS.
From: Felix Deichmann <m4j0rd0m0%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: PR/50849 CVS commit: src/sys/dev/tc
Date: Tue, 19 Jul 2016 19:13:49 +0200
Thanks Christos, but the initial intention of the patch (making it work
with variable ROM bus widths of TC adapters) is now lost. Patch once
more please:
Index: tc.c
===================================================================
RCS file: /cvsroot/src/sys/dev/tc/tc.c,v
retrieving revision 1.52
diff -u -p -r1.52 tc.c
--- tc.c 19 Jul 2016 16:58:05 -0000 1.52
+++ tc.c 19 Jul 2016 17:10:34 -0000
@@ -212,7 +212,7 @@ tc_check_romp(const struct tc_rommap *ro
if (romp->tcr_stride.v != 4)
return 0;
- for (size_t j = 0; j < 4; j++) {
+ for (size_t j = 0; j < romp->tcr_width.v; j++) {
if (romp->tcr_test[j + 0 * romp->tcr_stride.v] != 0x55 ||
romp->tcr_test[j + 1 * romp->tcr_stride.v] != 0x00 ||
romp->tcr_test[j + 2 * romp->tcr_stride.v] != 0xaa ||
Home |
Main Index |
Thread Index |
Old Index