mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
fixup; hw: always serialize rdtsc reads
Since rdtsc() provides ordered timestamps now, we should reordering of statements by the compiler too. Issues #5215, #5430
This commit is contained in:
committed by
Christian Helmuth
parent
27c2064a3c
commit
004aaf0235
@@ -122,6 +122,8 @@ struct Hw::Tsc
|
||||
"rdtsc;"
|
||||
"lfence;"
|
||||
: "=a"(low), "=d"(high)
|
||||
:
|
||||
: "memory"
|
||||
);
|
||||
return (Genode::uint64_t)(high) << 32 | low;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user