From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: tleete@mountain.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Re: 2.4.0-testX fails to compile on my Athlon
Date: Tue, 2 Jan 2001 18:44:21 MET-1 [thread overview]
Message-ID: <11718F7840A2@vcnet.vc.cvut.cz> (raw)
On 2 Jan 01 at 3:51, Tom Leete wrote:
> Matt Wright wrote:
> >
> > I've looked for answers to this question before, but all I could find was
> > someone asking a similar question and no replies...
> >
> > I'm having great trouble getting 2.4.0-testX to compile on my system when
> > I select Athlon/K7 as the Processor Family....
> >
> > I've attached below the error's I'm getting.... the kernel DOES compile if
> > I select anything else... but I don't have anything else :)
>
> The problem with SMP+K7 builds is that include/asm-i386/string.h has no
> business using in_interrupt(). That introduces circular dependencies which
> nobody has been able to rearrange away.
I solved it by porting check_asm code from arch/sparc into i386 (I
had to learn check_asm about 'union'), and then replacing
smp_processor_id() define in smp.h with
#include <asm/asm_offsets.h>
#include <asm/current.h>
#define smp_processor_id() (*(int*)(((unsigned char*)current)+AOFF_task_processor))
So now I still have real spinlocks (so I can debug some problems with
nested console_lock), but inline memcpy...
Unfortunately, real diff is at home... And it has one bad side effect, that
you must rerun 'make dep' manually if you modify task_struct in
linux/sched.h, as asm/asm_offsets.h -> linux/sched.h dependancy is not
handled by makefiles. But I do not do this modification very often,
fortunately... Maybe if I placed check_asm somewhere else than where sparc
tree has it...
For 2.4.0, probably disabling 3DNow in kernel when using SMP is best
solution, as AFAIK nobody tested correctness of 3DNow code on SMP... Or is
it obviously correct?
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2001-01-02 18:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-02 18:44 Petr Vandrovec [this message]
2001-01-02 18:02 ` [PATCH] Re: 2.4.0-testX fails to compile on my Athlon Alan Cox
[not found] ` <3A52D390.AB56FFF2@mountain.net>
2001-01-03 11:20 ` Petr Vandrovec
-- strict thread matches above, loose matches on Subject: below --
2001-01-01 0:42 Matt Wright
2001-01-02 8:51 ` [PATCH] " Tom Leete
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11718F7840A2@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=tleete@mountain.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox