All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: uMinded Strikes Again <iceblu3710@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] #INCLUDE for __ipipe_tsc_register()
Date: Thu, 14 Feb 2013 20:40:17 +0100	[thread overview]
Message-ID: <511D3DA1.1040209@xenomai.org> (raw)
In-Reply-To: <CAPeEhaoXWQy_w3AvZPg7DTKWebiTh9p3zOaDEGkkcUe56ftPdA@mail.gmail.com>

On 02/14/2013 07:16 PM, uMinded Strikes Again wrote:

> I had a read through http://xenomai.org/index.php/I-pipe-core:ArmPorting but
> my 3.0.36 kernel does not use this style of ipipe functions. I took a look
> at the mach-omap2 implementation of ipipe and just copied it in my arch.
> 
> I have written functions and exported whats needed for everything `I HOPE`
> but I get an erro when linking:
> undefined reference to `__ipipe_tsc_register'
> 
> My snippit of code in my timer init function:
> #if defined(CONFIG_IPIPE)
>   tsc_info.type = IPIPE_TSC_TYPE_FREERUNNING,
>   tsc_info.freq = TIMER2_HPET_CLOCK_EVENT_HZ;
>   tsc_info.counter_vaddr = TMR_REG_o_TMR2_CUR;
>   tsc_info.u.counter_paddr = TMR_REG_o_TMR2_CUR;
>   tsc_info.u.mask = 0xffffffff;
>   __ipipe_tsc_register(&tsc_info);
> #endif /* CONFIG_IPIPE */
> 
> The only places I find the register function is in:
> /arch/arm/include/asm/ipipe.h
> /arch/arm/kernel/ipipe_tsc.c
> 
> but including either of those files does not solve the reference. Any idea
> what include I need for this __ipipe_tsc_register function?


That is explained at the very beginning of the TSC part of the porting 
guide, with an example given for the SPEAR processor:
http://xenomai.org/index.php/I-pipe-core:ArmPorting#High_resolution_counter

Namely, you have to add:
	select IPIPE_ARM_KUSER_TSC if IPIPE
somewhere in the Kconfig for the processor you are porting the I-pipe to.

-- 
                                                                Gilles.


      reply	other threads:[~2013-02-14 19:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 18:16 [Xenomai] #INCLUDE for __ipipe_tsc_register() uMinded Strikes Again
2013-02-14 19:40 ` Gilles Chanteperdrix [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=511D3DA1.1040209@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=iceblu3710@gmail.com \
    --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.