From 6bd96fc7abe950c9547c6e552c3b5067bedaf7c4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Jan 2003 20:40:29 +0000 Subject: 2003-01-03 Jitendra Vegiraju * sys/queue.h: Fix alignment problem on ARM. --- cpukit/libnetworking/ChangeLog | 4 ++++ cpukit/libnetworking/sys/queue.h | 14 ++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog index 3d7cb9cda2..c32e4b3ab7 100644 --- a/cpukit/libnetworking/ChangeLog +++ b/cpukit/libnetworking/ChangeLog @@ -1,3 +1,7 @@ +2003-01-03 Jitendra Vegiraju + + * sys/queue.h: Fix alignment problem on ARM. + 2002-11-26 Chris Johns * Makefile.am: Added sys/linker_set.h diff --git a/cpukit/libnetworking/sys/queue.h b/cpukit/libnetworking/sys/queue.h index 75ad0aa90e..db0f2dd804 100644 --- a/cpukit/libnetworking/sys/queue.h +++ b/cpukit/libnetworking/sys/queue.h @@ -564,13 +564,19 @@ struct { \ * They bogusly assumes that all queue heads look alike. */ -struct quehead { - struct quehead *qh_link; - struct quehead *qh_rlink; -}; #ifdef __GNUC__ +struct quehead { +#if defined(__arm__) + struct quehead *qh_link __attribute__((packed)); + struct quehead *qh_rlink __attribute__((packed)); +#else /* !defined(__arm__)) */ + struct quehead *qh_link; + struct quehead *qh_rlink; +#endif +}; + static __inline void insque(void *a, void *b) { -- cgit v1.2.3