summaryrefslogtreecommitdiffstats
path: root/app/ptp.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/ptp.c')
-rw-r--r--app/ptp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/ptp.c b/app/ptp.c
index 264918f..c05d0c3 100644
--- a/app/ptp.c
+++ b/app/ptp.c
@@ -80,11 +80,12 @@ uint64_t ptp_get (void)
{
uint32_t pl, ph;
- ph = ETH_PTPTSHR;
do {
+ ph = ETH_PTPTSHR;
compiler_mb();
pl = ETH_PTPTSLR;
+ compiler_mb();
} while (ph != ETH_PTPTSHR);
return ptp_to_u64 (pl, ph);