* [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason()
@ 2019-07-10 21:46 Richard Weinberger
2019-07-10 21:46 ` [PATCH 2/2] alchemy/mutex: Fix typo in comment Richard Weinberger
2019-07-11 8:25 ` [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Philippe Gerum
0 siblings, 2 replies; 4+ messages in thread
From: Richard Weinberger @ 2019-07-10 21:46 UTC (permalink / raw)
To: xenomai; +Cc: Richard Weinberger
Since cobalt adds 0xfccf0000 to si_value we can no longer
use the raw value.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
demo/alchemy/altency.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/demo/alchemy/altency.c b/demo/alchemy/altency.c
index 83cc806b5d7f..4b49755edaba 100644
--- a/demo/alchemy/altency.c
+++ b/demo/alchemy/altency.c
@@ -461,7 +461,7 @@ static void sigdebug(int sig, siginfo_t *si, void *context)
{
const char fmt[] = "%s, aborting.\n"
"(enabling CONFIG_XENO_OPT_DEBUG_TRACE_RELAX may help)\n";
- unsigned int reason = si->si_value.sival_int;
+ unsigned int reason = sigdebug_reason(si);
int n __attribute__ ((unused));
static char buffer[256];
--
2.16.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] alchemy/mutex: Fix typo in comment
2019-07-10 21:46 [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Richard Weinberger
@ 2019-07-10 21:46 ` Richard Weinberger
2019-07-12 10:16 ` Jan Kiszka
2019-07-11 8:25 ` [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Philippe Gerum
1 sibling, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2019-07-10 21:46 UTC (permalink / raw)
To: xenomai; +Cc: Richard Weinberger
s/rt_mutex_acquite/rt_mutex_acquire
Signed-off-by: Richard Weinberger <richard@nod.at>
---
lib/alchemy/mutex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/alchemy/mutex.c b/lib/alchemy/mutex.c
index ffdc2dbea323..42cd1375b34b 100644
--- a/lib/alchemy/mutex.c
+++ b/lib/alchemy/mutex.c
@@ -182,7 +182,7 @@ out:
*
* - -EBUSY is returned upon an attempt to destroy the object
* referenced by @a mutex while it is referenced (for example, while
- * being used in a rt_mutex_acquite(), rt_mutex_acquire_timed() or
+ * being used in a rt_mutex_acquire(), rt_mutex_acquire_timed() or
* rt_mutex_acquire_until() by another task).
*
* @apitags{mode-unrestricted, switch-secondary}
--
2.16.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason()
2019-07-10 21:46 [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Richard Weinberger
2019-07-10 21:46 ` [PATCH 2/2] alchemy/mutex: Fix typo in comment Richard Weinberger
@ 2019-07-11 8:25 ` Philippe Gerum
1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2019-07-11 8:25 UTC (permalink / raw)
To: Richard Weinberger, xenomai
On 7/10/19 11:46 PM, Richard Weinberger via Xenomai wrote:
> Since cobalt adds 0xfccf0000 to si_value we can no longer
> use the raw value.
>
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
> demo/alchemy/altency.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/demo/alchemy/altency.c b/demo/alchemy/altency.c
> index 83cc806b5d7f..4b49755edaba 100644
> --- a/demo/alchemy/altency.c
> +++ b/demo/alchemy/altency.c
> @@ -461,7 +461,7 @@ static void sigdebug(int sig, siginfo_t *si, void *context)
> {
> const char fmt[] = "%s, aborting.\n"
> "(enabling CONFIG_XENO_OPT_DEBUG_TRACE_RELAX may help)\n";
> - unsigned int reason = si->si_value.sival_int;
> + unsigned int reason = sigdebug_reason(si);
> int n __attribute__ ((unused));
> static char buffer[256];
>
>
Ack.
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] alchemy/mutex: Fix typo in comment
2019-07-10 21:46 ` [PATCH 2/2] alchemy/mutex: Fix typo in comment Richard Weinberger
@ 2019-07-12 10:16 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2019-07-12 10:16 UTC (permalink / raw)
To: Richard Weinberger, xenomai
On 10.07.19 23:46, Richard Weinberger via Xenomai wrote:
> s/rt_mutex_acquite/rt_mutex_acquire
>
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
> lib/alchemy/mutex.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/alchemy/mutex.c b/lib/alchemy/mutex.c
> index ffdc2dbea323..42cd1375b34b 100644
> --- a/lib/alchemy/mutex.c
> +++ b/lib/alchemy/mutex.c
> @@ -182,7 +182,7 @@ out:
> *
> * - -EBUSY is returned upon an attempt to destroy the object
> * referenced by @a mutex while it is referenced (for example, while
> - * being used in a rt_mutex_acquite(), rt_mutex_acquire_timed() or
> + * being used in a rt_mutex_acquire(), rt_mutex_acquire_timed() or
> * rt_mutex_acquire_until() by another task).
> *
> * @apitags{mode-unrestricted, switch-secondary}
>
Thanks, both applied to next. Will go to stable as well.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-12 10:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 21:46 [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Richard Weinberger
2019-07-10 21:46 ` [PATCH 2/2] alchemy/mutex: Fix typo in comment Richard Weinberger
2019-07-12 10:16 ` Jan Kiszka
2019-07-11 8:25 ` [PATCH 1/2] demo/alchemy/altency: Use sigdebug_reason() Philippe Gerum
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.