HomeFreeBSD

x86 tsc: mark %eax as earlyclobber in tscp_get_timecount_low().

Description

x86 tsc: mark %eax as earlyclobber in tscp_get_timecount_low().

i386 codegen insists on preloading tc_priv into register on i386, and
this register cannot be %eax because RDTSCP instruction clobbers it
before it is used.

Reported and tested by: dim
MFC after: 6 days
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on Jan 10 2021, 10:05 PM
Parents
rG148a227bf80e: nfsd: add KASSERTs to nfsm_trimtrailing() for M_EXTPG mbufs
Branches
Unknown
Tags
Unknown