From: Bernhard Michael <michael.bernhard@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai problems on pxa
Date: Thu, 17 Jan 2008 14:02:17 +0100 [thread overview]
Message-ID: <478F51D9.4050704@domain.hid> (raw)
In-Reply-To: <2ff1a98a0801160930w3b63bc5dyd89f8ec867a3ae35@domain.hid>
Gilles Chanteperdrix wrote:
> I tested it on another arm (without EABI, so I can not know if it
> works), and there is at least no regression.
I tested it too with the EABI toolchain and its working. Thank you
Gilles for your help.
To sum up, here are the necessary ipipe changes to get xenomai running
on pxa (compiled with an EABI toolchain).
Kernel: 2.6.20,
Adeos/Ipipe patch: ipipe-2.6.20-arm-1.8-03
Align the stack pointer to 8-byte boundary:
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -216,11 +216,12 @@ ENTRY(vector_swi)
stmdb sp!, {r4, r5} @ push fifth and sixth args
#ifdef CONFIG_IPIPE
stmfd sp!, {r0-r3, ip}
- add r1, sp, #S_OFF
- add r1, r1, #20
+ add r1, sp, #S_OFF + 20
+ sub sp, sp, #4
mov r0, scno
bl __ipipe_syscall_root
cmp r0, #0
+ add sp, sp, #4
ldmfd sp!, {r0-r3, ip}
blt __ipipe_ret_fast_syscall
bgt __ipipe_fast_exit_syscall
Initialise local variable last_jiffy_time:
--- a/arch/arm/mach-pxa/time.c
+++ b/arch/arm/mach-pxa/time.c
@@ -199,7 +199,8 @@ static void __init pxa_timer_init(void)
setup_irq(IRQ_OST0, &pxa_timer_irq);
local_irq_save(flags);
OIER = OIER_E0; /* enable match on timer 0 to cause interrupts */
- OSMR0 = OSCR + LATCH; /* set initial match */
+ last_jiffy_time = OSCR; /* initialize last_jiffy_time */
+ OSMR0 = last_jiffy_time + LATCH; /* set initial match */
local_irq_restore(flags);
/*
The second change needs to be applied to ipipe-2.6.15-arm-1.5-08 as well.
Well, that's it. Thanks again.
--
Michael
next prev parent reply other threads:[~2008-01-17 13:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 19:35 [Xenomai-help] Xenomai problems on pxa Bernhard Michael
2008-01-14 13:25 ` Gilles Chanteperdrix
2008-01-14 15:39 ` Bernhard Michael
2008-01-14 15:52 ` Gilles Chanteperdrix
2008-01-15 10:28 ` Bernhard Michael
2008-01-15 10:29 ` Gilles Chanteperdrix
2008-01-15 12:47 ` Bernhard Michael
2008-01-15 13:09 ` Gilles Chanteperdrix
2008-01-15 14:03 ` Bernhard Michael
2008-01-15 14:10 ` Gilles Chanteperdrix
2008-01-16 10:14 ` Bernhard Michael
2008-01-16 10:49 ` Gilles Chanteperdrix
2008-01-16 14:19 ` Bernhard Michael
2008-01-16 14:35 ` Gilles Chanteperdrix
2008-01-16 17:30 ` Gilles Chanteperdrix
2008-01-17 13:02 ` Bernhard Michael [this message]
2008-01-17 13:23 ` Gilles Chanteperdrix
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=478F51D9.4050704@domain.hid \
--to=michael.bernhard@domain.hid \
--cc=gilles.chanteperdrix@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.