Module: xenomai-2.4
Branch: master
Commit: a91a23944e2b1ec68f7a19abc669e04792ff4abb
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=a91a23944e2b1ec68f7a19abc669e04792ff4abb

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Nov  3 23:36:43 2009 +0100

rtdm: Add padding to rtser_config

The current layout of rtser_config is unfortunate as it may result in
different layout depending on the compiler alignment setting. Namely,
rx_timeout may be aligned on 8-byte boundaries in user land while it may
not be aligned in the kernel, or vice versa.

Avoid this ambiguity by adding a reserved padding field. Bump profile
revision number due to ABI breakage.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 include/rtdm/rtserial.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/rtdm/rtserial.h b/include/rtdm/rtserial.h
index 30bb564..48712b2 100644
--- a/include/rtdm/rtserial.h
+++ b/include/rtdm/rtserial.h
@@ -29,7 +29,7 @@
  * Feel free to comment on this profile via the Xenomai mailing list
  * (xenomai-c...@gna.org) or directly to the author (jan.kis...@web.de).
  *
- * @b Profile @b Revision: 2
+ * @b Profile @b Revision: 3
  * @n
  * @n
  * @par Device Characteristics
@@ -79,7 +79,7 @@
 
 #include <rtdm/rtdm.h>
 
-#define RTSER_PROFILE_VER              2
+#define RTSER_PROFILE_VER              3
 
 /*!
  * @anchor RTSER_DEF_BAUD   @name RTSER_DEF_BAUD
@@ -263,6 +263,8 @@ typedef struct rtser_config {
        /** reception FIFO interrupt threshold, see @ref RTSER_FIFO_xxx */
        int             fifo_depth;
 
+       int             reserved;
+
        /** reception timeout, see @ref RTSER_TIMEOUT_xxx for special
         *  values */
        nanosecs_rel_t  rx_timeout;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to