All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] Exporting __ipipe_get_cs_tsc
Date: Tue, 09 Oct 2012 16:10:16 +0200	[thread overview]
Message-ID: <50743048.1050305@xenomai.org> (raw)
In-Reply-To: <CANKLDmtLLcZnbJ5vXJFRkdyoy1Qk_wfGR84LdB0dkb8KynS+Yg@mail.gmail.com>

On 10/09/2012 02:32 PM, Henri Roosen wrote:
> Hi,
> 
> I'm using the current git heads of core-3.4 and xenomai 2.6.1 for x86
> with the attached config file.
> 
> When compiling the modules I get undefined symbols:
> ERROR: "__ipipe_get_cs_tsc" [kernel/xenomai/skins/posix/xeno_posix.ko]
> undefined!
> 
> This is because the run time seleted __ipipe_get_cs_tsc assembly
> function is not exported for module use.
> I don't know how to export this or whether the symbol should be used
> by modules in the first place.
> 

Please try this:

diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c
index 430aeea..2d2f83c 100644
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -634,6 +634,11 @@ void update_vsyscall(struct timespec *wall_time,
struct timespec *wtm,
 void update_vsyscall_tz(void)
 {
 }
+
+#ifdef CONFIG_IPIPE_WANT_CLOCKSOURCE
+EXPORT_SYMBOL_GPL(__ipipe_get_cs_tsc);
+#endif
+
 #endif /* CONFIG_X86_32 */

 struct task_struct *__switch_to(struct task_struct *prev_p,
> Please advice.
> 
> Thanks,
> Henri.
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: .config
> Type: application/octet-stream
> Size: 57776 bytes
> Desc: not available
> URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20121009/524a0516/attachment.obj>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
> 


-- 
Philippe.


  reply	other threads:[~2012-10-09 14:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09 12:32 [Xenomai] Exporting __ipipe_get_cs_tsc Henri Roosen
2012-10-09 14:10 ` Philippe Gerum [this message]
2012-10-09 15:24   ` Henri Roosen
2012-10-09 15:27     ` Gilles Chanteperdrix
2012-10-09 15:28       ` Henri Roosen
2012-10-09 15:30         ` Philippe Gerum

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=50743048.1050305@xenomai.org \
    --to=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.