diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-12-10 20:26:57 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-12-10 20:26:57 +0000 |
commit | d3fde971f3528926e84ea051a99417a80417f473 (patch) | |
tree | 858d51b896a2d852e7760005ba9e60691c94bae0 /sys/dev/ic | |
parent | 0d3e35763368238aa860947c2387a4e7ce5965ab (diff) |
both x86 platforms isa bus_dma implementations handle bus_dmamap_sync
incorrectly.
The spec (manpage) states that using two PRE or two POST ops together is
entirely valid, but mixing pre and post is invalid. The way this was
handled before with a switch statement meant that only individual
commands actually would be recognised, so move to just checking the
commands indidually using "if (op & $command)". Additionally, add a
DIAGNOSTIC check and panic for the mixing of pre and post operations
(this is done on several other architectures already).
tested by several people; thanks!
ok dlg@, kettenis@, "the diff made sense" deraadt.
Diffstat (limited to 'sys/dev/ic')
0 files changed, 0 insertions, 0 deletions