From: Bill Pringlemeir <bpringle@sympatico.ca>
To: linux-kernel@vger.kernel.org
Subject: APIC, AMD-K6/2 -mcpu=586...
Date: 18 May 2001 09:38:01 -0400 [thread overview]
Message-ID: <m2u22ibww6.fsf@sympatico.ca> (raw)
Hello,
I have the 2.4.4 distribution from kernel.org.
"http://www.kernel.org/pub/linux/kernel/v2.4/"
I have a Mandrake system and selected the AMD processors and APIC
option. The egcs-2.91.66 compiler with -mcpu=586. It appears that
the structure alignment of the floating point registers was not
correct under this configuration. This code was being compiled and
a linker error produced.
if (offsetof(struct task_struct, thread.i387.fxsave) & 15) {
/* printk("WJP: value is %x.\n",
offsetof(struct task_struct, thread.i387.fxsave) & 15); */
/* while(1); */
extern void __buggy_fxsr_alignment(void);
__buggy_fxsr_alignment();
}
The alignment was to 8 bytes instead of 16. I added some padding to
the thread structure to produce an alignment of 16 and the code
compiled and seemed to work fine; I used it for a few days.
[in processor.h]
/* floating point info */
/* unsigned char wjpDummy[8]; */
union i387_union i387;
I did not see any mention of this in the archives [but the volume of
mailings is large... which I may be contributing to]. I recompiled
without the padding and APIC support and everything seems to be fine,
but _VERY_ slow. Is this change ok locally? Has it been addressed
in a patch?
regards,
Bill Pringlemeir.
next reply other threads:[~2001-05-18 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-18 13:38 Bill Pringlemeir [this message]
2001-05-18 17:04 ` APIC, AMD-K6/2 -mcpu=586 Bill Pringlemeir
2001-05-18 18:34 ` J . A . Magallon
2001-05-18 18:47 ` Bill Pringlemeir
2001-05-18 19:20 ` Bill Pringlemeir
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=m2u22ibww6.fsf@sympatico.ca \
--to=bpringle@sympatico.ca \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.