Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2005 20:16:57 +0300
From:      "Vladimir Chukharev" <chu@h33.erkki.ton.tut.fi>
To:        freebsd-current@freebsd.org
Subject:   Re: Newest loader from CVS not working
Message-ID:  <op.srjrmjv0sh9hi4@localhost>

index | next in thread | raw e-mail

[-- Attachment #1 --]
>> I did some more investigation into this and found that MMX registers
>> are used in the FICL code in the pentium-m case. Here is a full diff
>> of sys/boot built with CPUTYPE?=pentium2 and pentium-m.
>
> Sounds like you should add '-mno-sse -mno-mmx' to the compiler flagswhen building this bit.

I tryed the attached patch on my pentium-m notebook,
it did NOT help, still immediate reboot.

Do you have more suggestions?

Best regards,
-- 
V.Chukharev
[-- Attachment #2 --]
--- src/sys/boot/arc/loader/Makefile.orig	Sun May 29 14:20:14 2005
+++ src/sys/boot/arc/loader/Makefile	Sun May 29 14:20:56 2005
@@ -14,7 +14,7 @@
 # Always add MI sources 
 .PATH:		${.CURDIR}/../../common
 .include	<${.CURDIR}/../../common/Makefile.inc>
-CFLAGS+=	-ffreestanding -mno-fp-regs
+CFLAGS+=	-ffreestanding -mno-fp-regs -mno-sse -mno-mmx
 CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}
 CFLAGS+=	-I${.CURDIR}/../../.. -I.
 CFLAGS+=	-DLOADER
--- src/sys/boot/ficl/Makefile.orig	Sun May 29 14:13:10 2005
+++ src/sys/boot/ficl/Makefile	Sun May 29 14:14:09 2005
@@ -11,7 +11,7 @@
 CFLAGS+=	-mno-fp-regs -Os
 .endif
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
-CFLAGS+=	-mpreferred-stack-boundary=2
+CFLAGS+=	-mpreferred-stack-boundary=2 -mno-sse -mno-mmx
 .endif
 .if ${MACHINE_ARCH} == "powerpc"
 CFLAGS+=	-msoft-float
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.srjrmjv0sh9hi4>