From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Petr Cervenka <grugh@domain.hid>, xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH 2/3] x86-64: Work around gcc issues with populating syscall registers
Date: Mon, 20 Jul 2009 08:37:54 +0200 [thread overview]
Message-ID: <4A6410C2.6060804@domain.hid> (raw)
In-Reply-To: <1248017714.4228.157.camel@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]
Philippe Gerum wrote:
> On Sun, 2009-07-19 at 17:23 +0200, Jan Kiszka wrote:
>> Gilles Chanteperdrix wrote:
>>> Jan Kiszka wrote:
>>>> gcc-4.1.3 of kubuntu has problem with proper syscall register
>>>> initialization in rt_task_shadow if TLS is enabled. But it is likely
>>>> that more compiler versions below 4.3 and more configuration variants
>>>> are affected.
>>>>
>>>> This patch installs a workaround for these gcc versions which places an
>>>> optimization barrier before the register variable setup. This forces gcc
>>>> to actually load the registers.
>>> I have tried the barrier with arm gcc, it does not work. However,
>>> marking the registered clobbered instead of the memory fixes arm gcc 4.3
>>> bug. So, I wonder, would not it make more sense to mark the registers as
>>> clobbered by the barrier instead of memory on x86 too?
>>>
>> Sounds reasonable. Will give it a try later.
Sounded reasonable - but didn't work. So we have to stick with the
original version.
>>
>> I just noticed that my unification patch includes some unwanted merge
>> artifact, so it requires another round in any case.
>
> So I'm discarding the pending pull request entirely. Please re-submit
> when ready.
I just pushed an updated for patch 3 (removing the original "+r"
workaround from the unified version). Please pull now from
git://git.xenomai.org/xenomai-jki.git for-upstream
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-07-20 6:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A62D1C1.9050807@domain.hid>
2009-07-19 8:00 ` [Xenomai-core] [PATCH 1/3] native: Align documentation to code Jan Kiszka
2009-07-19 8:00 ` [Xenomai-core] [PATCH 2/3] x86-64: Work around gcc issues with populating syscall registers Jan Kiszka
2009-07-19 13:42 ` Gilles Chanteperdrix
2009-07-19 14:31 ` Philippe Gerum
2009-07-19 15:12 ` Gilles Chanteperdrix
2009-07-19 15:23 ` Jan Kiszka
2009-07-19 15:35 ` Philippe Gerum
2009-07-20 6:37 ` Jan Kiszka [this message]
2009-07-19 8:01 ` [Xenomai-core] [PATCH 3/3] x86: Merge syscall_{32|64}.h into syscall.h Jan Kiszka
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=4A6410C2.6060804@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=grugh@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.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.