Re: Patch for review (was: Re: Proposal to revise the new parsing of PCI selectors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefan Esser
Date: Wednesday, October 3, 2007 - 1:21 pm

Marius Strobl schrieb:

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"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: HEADS UP: [cvs commit: src UPDATING src/share/man/man4 ..., Arjan van Leeuwen, (Tue Oct 2, 12:58 am)
Re: Patch for review (was: Re: Proposal to revise the new ..., Stefan Esser, (Wed Oct 3, 1:21 pm)
Re: HEADS UP: [cvs commit: src UPDATING src/share/man/man4 ..., 韓家標 Bill Hacker, (Mon Oct 15, 10:41 pm)