Architectures with strict alignment?

Kostik Belousov kostikbel at gmail.com
Sat Dec 29 03:12:08 PST 2007


On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote:
> Isn't it everything except x86?
> 
> -Kip
x86 has the AC bit in the eflags. The AM bit in cr0 is enabled by the
kernel, and AC could be switched on by LD_PRELOADed shared object.

Last time I checked, our libc caused unaligned access in the locale
initialization code.

> 
> On Dec 29, 2007 12:11 AM, Erich Dollansky <oceanare at pacific.net.sg> wrote:
> > Hi,
> >
> >
> > Ivan Voras wrote:
> > > Hi,
> > >
> > > Which of the architectures FreeBSD supports (if any) have strict memory
> > > alignment requirements? (in the sense that accessing a 32-bit integer
> > > not aligned on a 32-bit address results in a hardware trap/exception).
> > >
> > isn't this the case with SPARC and Itanium?
> >
> > I know, they are 64 bits.
> >
> > Erich
> >
> > _______________________________________________
> > freebsd-hackers at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> >
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071229/4f2badf0/attachment.pgp


More information about the freebsd-hackers mailing list