Thank you for your comments. I've got to admit that I did not
look at any PCI standard after 2.1 (which I bought to work on
the FreeBSD PCI code, a long time ago) in detai ...
While I can not imagine a machine with that many domains, it is
easy enough to fix the code (i.e. make all elements in selarr[]
unsigned 32-bit integers and then cut off high bits when in the
assignment to sel structure components.
BTW: I do not plan to check for overflow of the selector fiels.
This does only affect the bus part of a selector, which causes
pci256:0:0 to be an alias of pci0:0:0. But this is old behaviour,
and while it is easy to fix, I don't see a need. OTOH, the check
would be simple to implement. Hmmm, perhaps as an add on to this
patch???
Regards, STefan
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"