From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Lindner Date: Fri, 29 May 2009 15:02:42 +0800 References: <4313f3060905190727x279f2d0boc4e74e4df6e821bc@mail.gmail.com> <1243507208-8999-1-git-send-email-sven.eckelmann@gmx.de> In-Reply-To: <1243507208-8999-1-git-send-email-sven.eckelmann@gmx.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905291502.43117.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] [batman] Add padding around allocation debugger structures Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Thursday 28 May 2009 18:40:08 Sven Eckelmann wrote: > Architectures with a special alignment for load and store operations on > datatypes bigger than bytes will return a prealigned memory region when > calling malloc. When we add our data structure before and after this > region we destroy this alignment. > To fix this problem we add special regions with "magic" padding data. > To be sure that it is big enough for every load/store operation we use > the alignment for uintmax_t or a pointer even when the architecture only > supports smaller load/store operations. > > Signed-off-by: Sven Eckelmann @Nathan: Could you let me know if these patches work for you ? If so I'll commit them. Regards, Marek