ppc(4) locking of isa_dma*

Roman Divacky rdivacky at freebsd.org
Wed Jul 15 10:51:18 UTC 2009


hi

the isa_dma* functions seem to require Giant. ppc(4) uses those
but does not seem to lock Giant or anything. is this ok?
is it a bug?

I looked at the i386/isa/isa_dma.c and it seems pretty selfcontained
(ie. it operates on hw and it's own variables). would it be sufficient
to just introduce a new lock and lock with it all the isa_dma* functions
? or is there some indirect dependency on Giant that I cant see?

there are not many users of this (most prominently fdc/ppc/sound-isa and
some minor stuff).

can someone comment? thnx!

roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090715/c88745bd/attachment.pgp


More information about the freebsd-current mailing list