On Sun, Nov 08, 2009 at 05:17:52PM -0700, Michael L. Hitch wrote: > On Sun, 8 Nov 2009, Joerg Sonnenberger wrote: > > >On Sun, Nov 08, 2009 at 08:53:25PM +0000, Quentin Garnier wrote: > >>Ok, I understand now. So it's not a gcc bug, but rather that we don't > >>compile the kernel and the modules properly on amd64. We need to > >>compile them with -fno-red-zone. > > > >Makefile.amd64 certainly sets -mcmode=kernel -mno-red-zone. > > The modules only use -mcmode=kernel. I think share/mk/bsd.klinks.mk > needs to also add -mno-red-zone to CFLAGS. Actually I think the right way to do that would be to create sys/arch/amd64/include/Makefile.inc and put the CFLAGS addition there. -- Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost "See the look on my face from staying too long in one place [...] every time the morning breaks I know I'm closer to falling" KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
Attachment:
pgpk8_RNKDotp.pgp
Description: PGP signature