From: Philippe Gerum <rpm@xenomai.org>
To: ronny meeus <ronny.meeus@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] t_getreg / t_setreg undefined references in pSOS+ skin
Date: Wed, 22 Sep 2010 08:46:52 +0200 [thread overview]
Message-ID: <1285138012.1661.0.camel@domain.hid> (raw)
In-Reply-To: <AANLkTinYnaJjMj-9R=UJd1j7DzT3kCYGZNa=w4LwXzXZ@mail.gmail.com>
On Tue, 2010-09-21 at 16:59 +0200, ronny meeus wrote:
> Hello
>
> There was a small copy-paste issue in your code.
> In the file src/skins/psos+/task.c:
>
> +u_long t_setreg(u_long tid, u_long regnum, u_long regvalue)
> +{
> + return XENOMAI_SKINCALL3(__psos_muxid, __psos_t_setreg,
> + tid, regnum, regvalue);
> +}
> +
> +u_long t_getreg(u_long tid, u_long regnum, u_long *regvalue_r)
> +{
> + return XENOMAI_SKINCALL3(__psos_muxid, __psos_t_setreg,
> + tid, regnum, regvalue_r);
> +}
>
> The function t_getreg should use __psos_t_getreg instead of
> __psos_t_setreg.
>
> Once I changed this, the code seems to work.
>
> BTW I'm really impressed by the code-quality and responsiveness of the
> Xenomai community.
Ok, thanks. This patch is now on its way to upstream.
>
> Best regards,
> Ronny
>
> On Tue, Sep 21, 2010 at 9:29 AM, Philippe Gerum <rpm@xenomai.org>
> wrote:
>
> On Mon, 2010-09-20 at 22:42 +0200, ronny meeus wrote:
> > Hello
> >
> > I see in the psos.h file the function declaration for both
> the
> > t_getreg and the t_setreg functions.
> > Also in the psos kernel module I see functionality
> available.
> > What I miss it the references for both service calls in the
> syscall.c
> > file.
> >
> > This results in undefined references if I try to use the
> service call
> > in my application.
> >
> > Is there any patch available that solves my problem?
>
>
> Untested:
> http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=740e3b9e5f77588f3df010752c255ecd24adea4e
>
> >
> > Thanks
> > Ronny
> > _______________________________________________
> > Xenomai-help mailing list
> > Xenomai-help@domain.hid
> > https://mail.gna.org/listinfo/xenomai-help
>
> --
> Philippe.
>
>
>
--
Philippe.
prev parent reply other threads:[~2010-09-22 6:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-20 20:42 [Xenomai-help] t_getreg / t_setreg undefined references in pSOS+ skin ronny meeus
2010-09-20 20:51 ` Gilles Chanteperdrix
2010-09-21 7:29 ` Philippe Gerum
2010-09-21 9:03 ` Stefan Kisdaroczi
2010-09-21 14:59 ` ronny meeus
2010-09-22 6:46 ` Philippe Gerum [this message]
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=1285138012.1661.0.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=ronny.meeus@domain.hid \
--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.