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
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