Add a variant of rdtsc() that performs the ordered version of rdtsc
appropriate for the invoking x86 variant.
Details
Details
Tested as part of testing D29733.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/x86/x86/rdtsc_ordered.c | ||
---|---|---|
54 ↗ | (On Diff #93245) | I would add rdtsc_ordered_*fence() functions to cpufunc.h as well. |
63 ↗ | (On Diff #93245) | I suppose this branch did not caused a warning from the compiler? I suggest to add {} around the body of the case. Or write it as return (cpu_is_amd ? rdtsc_ordered_mfence : rdtsc_ordered_lfence); |