summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
Diffstat (limited to 'shmexport.c')
-rw-r--r--shmexport.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shmexport.c b/shmexport.c
index d9aad54c..4d615abf 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -77,15 +77,11 @@ void shm_update(struct gps_context_t *context, struct gps_data_t *gpsdata)
* get clobbered first and the data can be detected as bad.
*/
((struct shmexport_t *)context->shmexport)->bookend2 = tick;
-#ifndef S_SPLINT_S
- asm volatile("sfence");
-#endif /* S_SPLINT_S */
+ barrier();
memcpy((void *)(context->shmexport + offsetof(struct shmexport_t, gpsdata)),
(void *)gpsdata,
sizeof(struct gps_data_t));
-#ifndef S_SPLINT_S
- asm volatile("sfence");
-#endif /* S_SPLINT_S */
+ barrier();
((struct shmexport_t *)context->shmexport)->bookend1 = tick;
}
}