From: "Ivan Kalatchev" <ivan.kalatchev@domain.hid>
To: 'Gilles Chanteperdrix' <gilles.chanteperdrix@xenomai.org>
Cc: 'Xenomai help' <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Viper board (ARM XScale) problems with Xenomai-2.4.10
Date: Wed, 13 Jan 2010 08:55:03 -0500 [thread overview]
Message-ID: <004b01ca9458$0240e240$06c2a6c0$@kalatchev@domain.hid> (raw)
In-Reply-To: <4B4D11CF.7030007@domain.hid>
> Here comes the patch:
> diff --git a/include/asm-arm/arith.h b/include/asm-arm/arith.h
> index eca69ba..6908681 100644
> --- a/include/asm-arm/arith.h
> +++ b/include/asm-arm/arith.h
> @@ -14,9 +14,9 @@ rthal_arm_nodiv_ullimd(const unsigned long long op,
> #else /* arm <= v3 */
> #define __rthal_add96and64(l0, l1, l2, s0, s1) \
> do { \
> - __asm__ ("adds %2, %4\n\t" \
> - "adcs %1, %3\n\t" \
> - "adc %0, #0\n\t" \
> + __asm__ ("adds %2, %2, %4\n\t" \
> + "adcs %1, %1, %3\n\t" \
> + "adc %0, %0, #0\n\t" \
> : "+r"(l0), "+r"(l1), "+r"(l2) \
> : "r"(s0), "r"(s1): "cc"); \
> } while (0)
> @@ -46,17 +46,17 @@ rthal_arm_nodiv_ullimd(const unsigned long long op,
>
> __asm__ ("umull %[tl], %[rl], %[opl], %[fracl]\n\t"
> "umull %[rm], %[rh], %[oph], %[frach]\n\t"
> - "adds %[rl], %[tl], lsr #31\n\t"
> - "adcs %[rm], #0\n\t"
> - "adc %[rh], #0\n\t"
> + "adds %[rl], %[rl], %[tl], lsr #31\n\t"
> + "adcs %[rm], %[rm], #0\n\t"
> + "adc %[rh], %[rh], #0\n\t"
> "umull %[tl], %[th], %[oph], %[fracl]\n\t"
> - "adds %[rl], %[tl]\n\t"
> - "adcs %[rm], %[th]\n\t"
> - "adc %[rh], #0\n\t"
> + "adds %[rl], %[rl], %[tl]\n\t"
> + "adcs %[rm], %[rm], %[th]\n\t"
> + "adc %[rh], %[rh], #0\n\t"
> "umull %[tl], %[th], %[opl], %[frach]\n\t"
> - "adds %[rl], %[tl]\n\t"
> - "adcs %[rm], %[th]\n\t"
> - "adc %[rh], #0\n\t"
> + "adds %[rl], %[rl], %[tl]\n\t"
> + "adcs %[rm], %[rm], %[th]\n\t"
> + "adc %[rh], %[rh], #0\n\t"
> "umlal %[rm], %[rh], %[opl], %[integ]\n\t"
> "mla %[rh], %[oph], %[integ], %[rh]\n\t"
> : [rl]"=r"(rl), [rm]"=r"(rm), [rh]"=r"(rh),
>
Hi Gilles,
Repeating of the first argument did solved the problem! I've built 2.5.0 and will start to play with it.
By the way, for some reason patch itself didn't work - said something about malformed patch at line 16:
@@ -46,17 +46,17 @@ rthal_arm_nodiv_ullimd(const unsigned long long op,
I couldn't see what the problem was, so just updated everything manually.
Thanks a lot for your help.
Best regards,
Ivan
next prev parent reply other threads:[~2010-01-13 13:55 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 22:04 [Xenomai-help] Viper board (ARM XScale) problems with Xenomai-2.4.10 Ivan Kalatchev
2010-01-11 23:01 ` Gilles Chanteperdrix
2010-01-12 10:29 ` Gilles Chanteperdrix
[not found] ` <001f01ca9390$5fa20db0$1ee62910$@kalatchev@domain.hid>
2010-01-12 14:18 ` Gilles Chanteperdrix
2010-01-12 15:12 ` Ivan Kalatchev
2010-01-12 15:35 ` Gilles Chanteperdrix
2010-01-12 16:09 ` Ivan Kalatchev
2010-01-12 16:16 ` Gilles Chanteperdrix
2010-01-12 17:39 ` Ivan Kalatchev
2010-01-12 17:43 ` Gilles Chanteperdrix
2010-01-12 20:04 ` Gilles Chanteperdrix
2010-01-12 20:34 ` Ivan Kalatchev
2010-01-12 22:40 ` Ivan Kalatchev
2010-01-12 22:42 ` Gilles Chanteperdrix
2010-01-12 22:48 ` Ivan Kalatchev
2010-01-12 22:52 ` Gilles Chanteperdrix
2010-01-12 23:28 ` Gilles Chanteperdrix
2010-01-13 0:20 ` Gilles Chanteperdrix
2010-01-13 13:55 ` Ivan Kalatchev [this message]
2010-01-13 13:59 ` Gilles Chanteperdrix
2010-01-12 21:07 ` Ivan Kalatchev
2010-01-12 21:09 ` Gilles Chanteperdrix
2010-01-12 21:27 ` Ivan Kalatchev
2010-01-12 21:30 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2010-01-11 18:22 Ivan Kalatchev
2010-01-11 18:28 ` Gilles Chanteperdrix
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='004b01ca9458$0240e240$06c2a6c0$@kalatchev@domain.hid' \
--to=ivan.kalatchev@domain.hid \
--cc=gilles.chanteperdrix@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.