* [Xenomai] Porting Xenomai on Odroid XU4
@ 2016-10-09 13:49 Ugo Fabrizi
2016-10-21 10:35 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Ugo Fabrizi @ 2016-10-09 13:49 UTC (permalink / raw)
To: xenomai
Hi,
I am trying to port Xenomai on Odroid XU4 following the steps I have found
at https://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/
I have never done a porting but I was used to use hard real time operating
systems such as RTAI.
I have got stuck at the first step "Hardware timer" for the general.
I have found the code within the sources of the Odroid XU4 kernel at
https://github.com/hardkernel/linux/blob/odroidxu3-3.10.y/
arch/arm/mach-exynos/mach-smdk5422.c
and at https://github.com/hardkernel/linux/blob/odroidxu3-3.10.y/
arch/arm/plat-samsung/samsung-time.c
Can anyone help me?
The board supports the clock event infrastucture and to start I would like
to use shared timers between linux and xenomai. Following the guide the
first thing I have understood it is needed to do is to add
if (!clockevent_ipipe_stolen(evt))
acklowdege_the_irq_if_not_stolen
in the interrupt service routine "static irqreturn_t
samsung_clock_event_isr(int irq, void *dev_id)"
What low level register should I write to acknowledge the irq and with what?
I have tried to found the datasheet of the Exynos 5422 but I cannot find it.
Can anyone help me please?
Thanks in advance.
Best Regards
Ugo Fabrizi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai] Porting Xenomai on Odroid XU4
2016-10-09 13:49 [Xenomai] Porting Xenomai on Odroid XU4 Ugo Fabrizi
@ 2016-10-21 10:35 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2016-10-21 10:35 UTC (permalink / raw)
To: Ugo Fabrizi, xenomai
On 10/09/2016 03:49 PM, Ugo Fabrizi wrote:
> Hi,
>
> I am trying to port Xenomai on Odroid XU4 following the steps I have found
> at https://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/
>
> I have never done a porting but I was used to use hard real time operating
> systems such as RTAI.
>
> I have got stuck at the first step "Hardware timer" for the general.
>
> I have found the code within the sources of the Odroid XU4 kernel at
> https://github.com/hardkernel/linux/blob/odroidxu3-3.10.y/
> arch/arm/mach-exynos/mach-smdk5422.c
>
> and at https://github.com/hardkernel/linux/blob/odroidxu3-3.10.y/
> arch/arm/plat-samsung/samsung-time.c
>
> Can anyone help me?
>
> The board supports the clock event infrastucture and to start I would like
> to use shared timers between linux and xenomai. Following the guide the
> first thing I have understood it is needed to do is to add
> if (!clockevent_ipipe_stolen(evt))
> acklowdege_the_irq_if_not_stolen
>
> in the interrupt service routine "static irqreturn_t
> samsung_clock_event_isr(int irq, void *dev_id)"
> What low level register should I write to acknowledge the irq and with what?
>
> I have tried to found the datasheet of the Exynos 5422 but I cannot find it.
>
> Can anyone help me please?
The proper acknowledge code usually precedes the call to the clock event
handler in the original IRQ handler, that is the point of testing
clockevent_ipipe_stolen(evt), i.e. for skipping it in the regular IRQ
handler, because it has to run earlier from the I-pipe timer ack routine.
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-21 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 13:49 [Xenomai] Porting Xenomai on Odroid XU4 Ugo Fabrizi
2016-10-21 10:35 ` 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.