Collecting entropy from device_attach() times.
RW
rwmaillists at googlemail.com
Wed Oct 3 15:34:34 UTC 2012
On Wed, 03 Oct 2012 11:32:45 +0200
Dag-Erling Smørgrav wrote:
> RW <rwmaillists at googlemail.com> writes:
> > It doesn't compute it in a weird way for amd64 and most i386
> > systems. Where possible, get_cyclecount is just a wrapper for
> > rdtsc, which I think it will be for all the systems you quoted
> > (with the possible exception of virtualbox).
>
> No. All the machines I tested it on had TSCs, but not all i386
> machines we support do, so get_cyclecount() is always a function call
> on i386. Look at the code, or heck, disassemble my kernel if you
> don't believe me.
It appears that it changed in April (Revision 220347), so if they were
all running 9.1, 9-stable or head then you're quite right.
I was looking at my local source where it's still conditional on
"tsc_present".
More information about the freebsd-security
mailing list