From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 21 10:47:41 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6D47106566B for ; Thu, 21 Jan 2010 10:47:41 +0000 (UTC) (envelope-from mlfbsd@kanar.ci0.org) Received: from kanar.ci0.org (unknown [IPv6:2a01:e0b:1:50:40:63ff:feea:93a]) by mx1.freebsd.org (Postfix) with ESMTP id 34B158FC13 for ; Thu, 21 Jan 2010 10:47:40 +0000 (UTC) Received: from kanar.ci0.org (pluxor@localhost [127.0.0.1]) by kanar.ci0.org (8.14.2/8.14.3) with ESMTP id o0LAmJvN004512; Thu, 21 Jan 2010 11:48:19 +0100 (CET) (envelope-from mlfbsd@kanar.ci0.org) Received: (from mlfbsd@localhost) by kanar.ci0.org (8.14.2/8.14.3/Submit) id o0LAmJG5004511; Thu, 21 Jan 2010 11:48:19 +0100 (CET) (envelope-from mlfbsd) Date: Thu, 21 Jan 2010 11:48:19 +0100 From: Olivier Houchard To: Sebastian Huber Message-ID: <20100121104819.GA4371@ci0.org> References: <4B582AC4.9030502@embedded-brains.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B582AC4.9030502@embedded-brains.de> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 21 Jan 2010 12:38:54 +0000 Cc: FreeBSD-Hackers Subject: Re: ARM and structure size boundary X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 10:47:41 -0000 On Thu, Jan 21, 2010 at 11:21:56AM +0100, Sebastian Huber wrote: > Hi, > Hi Sebastian, > on ARM the GCC has an option for the structure size boundary: > > http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#ARM-Options > > In the GCC sources (gcc/config/arm) you see that NetBSD changes the default > value to 8 from 32. > > For FreeBSD I did not found something similar. What value is used on FreeBSD > by default? > > This value is (or was) important for the network stack. Do you know if the > current FreeBSD network stack is dependent on this value? In the file > gcc/config/arm/netbsd.h (GCC sources) is a comment about this topic. > > Have a nice day! > FreeBSD uses the default value of 32. The NetBSD comment states NetBSD has to use 8, because this is what some buggy code expects in their kernel (or expected at some point, no clue if it's still there). Nothing in the network stack, or anywhere in the kernel, should depend on it. Regards, Olivier