[rtems commit] capture: Workaround to avoid misaligned access
Sebastian Huber
sebh at rtems.org
Tue Sep 6 09:16:33 UTC 2016
Module: rtems
Branch: master
Commit: 7af6b58c5c991a8c5ca6a5c9df546b7faea7b97c
Changeset: http://git.rtems.org/rtems/commit/?id=7af6b58c5c991a8c5ca6a5c9df546b7faea7b97c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Sep 6 07:44:06 2016 +0200
capture: Workaround to avoid misaligned access
Move the 64-bit field to a not 64-bit aligned structure offset to stop
the compiler from generating 64-bit load/store operations.
---
cpukit/libmisc/capture/capture.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libmisc/capture/capture.h b/cpukit/libmisc/capture/capture.h
index 524edbb..b22b735 100644
--- a/cpukit/libmisc/capture/capture.h
+++ b/cpukit/libmisc/capture/capture.h
@@ -172,8 +172,8 @@ typedef struct rtems_capture_record
{
size_t size;
uint32_t events;
- rtems_capture_time time;
rtems_id task_id;
+ rtems_capture_time time;
} RTEMS_PACKED rtems_capture_record;
/*
More information about the vc
mailing list