DF-5585 / fidelity.diff
# fidelity.diff -- normalized diff: audited kernel functions vs rig copies # LHS = sys/bus/pccard/pccard_cis_quirks.c:201-292 (verbatim) # RHS = poc_quirkfastpath.c:264-359 (the rig's VERBATIM-marked copies) # Only differences: the 3 documented RIG substitutions (device_t->sc # param, PCCARD_SOFTC line, qlog in the dead bootverbose block). # The wipe loop, allocation error paths, and the fast-path insertion # (the security-relevant statements) are line-identical. --- /tmp/opencode/orig_fn.txt 2026-10-08 05:33:27.325288630 +0000 +++ /dev/fd/63 2026-10-08 05:33:56.608914414 +0000 @@ -14,10 +14,13 @@ return (1); return (0); } + +/* ------------- VERBATIM pccard_cis_quirks.c:218-292 -------------------- */ + void -pccard_check_cis_quirks(device_t dev) +pccard_check_cis_quirks(struct pccard_softc *sc) /* RIG: was (device_t dev) */ { - struct pccard_softc *sc = PCCARD_SOFTC(dev); + /* RIG: struct pccard_softc *sc = PCCARD_SOFTC(dev); -- now a param */ int wiped = 0; int i, j; struct pccard_function *pf, *pf_next, *pf_last; @@ -33,7 +36,9 @@ continue; if (!wiped) { if (bootverbose) { - device_printf(dev, "using CIS quirks for "); + /* RIG: device_printf(dev,...) -> printf; body + * verbatim, not reached (bootverbose==0) */ + qlog("using CIS quirks for "); for (j = 0; j < 4; j++) { if (sc->card.cis1_info[j] == NULL) break; |