lkml.org 
[lkml]   [2001]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PROBLEM: __buggy_fxsr_alignment error 2.4.1 and 2.4.2
In fa.linux.kernel, you wrote:
>asm-i386:
>init/main.o(.text.init+0x63): undefined reference to `__buggy_fxsr_alignment'
>
>I don't recall this error in 2.4.0, but it is present in 2.4.1 and was not
>fixed in 2.4.2.
>
>Gnu C pgcc-2.95.2.1
>
>Fix: Comment out line 217 in include/asm-i386/bugs.h
>/* __buggy_fxsr_alignment(); */
>
>It compiles after this change.
>
[I'm not on the mailing list but do read it via usenet, can't post though]

As pointed out by Doug Ledford your kernel will surely oops when you
reboot. I have an Athlon and use AthlonGCC (pgcc-2.95.3 with patches).
I didn't want to go back to regular gcc but I fixed my problem anyway
and so far kernels from 2.4.1 to 2.4.2 run just fine.

The first fix was uncommenting in bugs.h as you did.
Not sure if it was proper but I did the whole section. :-)
I may retry it with just the last part commented out.

/* if (offsetof(struct task_struct, thread.i387.fxsave) & 15) {
extern void __buggy_fxsr_alignment(void);
__buggy_fxsr_alignment();
} */

The problem is this fxsr thing. I found the following in
arch/i386/kernel/setup.c (line 150):

static int disable_x86_fxsr __initdata = 0;

I changed the 0 to 1 (to disable x86_fxsr) and so far the kernels
have given me no problems.

Since apparently we're using buggy compilers no doubt this workaround
may be frowned upon. At least for me it works.

--
>>ANIME SENSHI<<

Marc D. Williams
marcdw@charter.net
http://www.oldskool.org/~tvdog/ -- DOS Internet & Tandy 1000
http://www.geocities.com/SiliconValley/Platform/8269/ -- Win3.x Makeover
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.056 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site