diff options
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/include/x86/arch/rdtsc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/include/x86/arch/rdtsc.h b/payloads/libpayload/include/x86/arch/rdtsc.h index 41ab24a9c7..2c92a9f4d4 100644 --- a/payloads/libpayload/include/x86/arch/rdtsc.h +++ b/payloads/libpayload/include/x86/arch/rdtsc.h @@ -33,9 +33,9 @@ static u64 rdtsc(void) { - u64 val; - __asm__ __volatile__ ("rdtsc" : "=A" (val)); - return val; + u32 lo, hi; + __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); + return (u64)hi << 32 | lo; } #endif |