ARM and structure size boundary

Olivier Houchard mlfbsd at kanar.ci0.org
Thu Jan 21 10:47:41 UTC 2010


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


More information about the freebsd-hackers mailing list