vmd(8): compute i8254 read-back command latch from singular timestamp
authorcheloha <cheloha@openbsd.org>
Fri, 2 Sep 2022 21:33:51 +0000 (21:33 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 2 Sep 2022 21:33:51 +0000 (21:33 +0000)
commitf53d796ad2c3cc060cbbd4764c6284ecc37d2efd
tree4d3270bbb14dec6847edd9861309195a43b5d86f
parent3ad05d8a962fc191553f154302aa10448542cee1
vmd(8): compute i8254 read-back command latch from singular timestamp

The intent of the i8254 read-back command is (most likely) to permit
simultaneously latching two or three counters at once along with their
statuses.

To simulate this, we should compute olatch from one timestamp per
read-back command, not one timestamp per counter.

Improved with a tweak by dv@.

Link: https://marc.info/?l=openbsd-tech&m=166213670605453&w=2
ok dv@ mlarkin@
usr.sbin/vmd/i8253.c