summaryrefslogtreecommitdiff
path: root/libgps_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgps_shm.c')
-rw-r--r--libgps_shm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libgps_shm.c b/libgps_shm.c
index 56fe5e5a..8c90f524 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -66,15 +66,11 @@ int gps_shm_read(struct gps_data_t *gpsdata)
* get clobbered first and the data can be detected as bad.
*/
before = shared->bookend1;
-#ifndef S_SPLINT_S
- asm volatile("sfence");
-#endif /* S_SPLINT_S */
+ barrier();
(void)memcpy((void *)gpsdata,
(void *)&shared->gpsdata,
sizeof(struct gps_data_t));
-#ifndef S_SPLINT_S
- asm volatile("sfence");
-#endif /* S_SPLINT_S */
+ barrier();
after = shared->bookend2;
/*@i1@*/gpsdata->privdata = shared;