Ivan Kalatchev wrote:
> Gilles,
> 
>> It comes from a macro written in assembly in
>> include/asm-arm/arith.h. However, this code compiles fine here for
>> armv5. You are probably using a toolchain that is incompatible with
>> this assembly code. What version of binutils are you using? If that
>> is not hard to you, please upgrade to a more recent toolchain.
>> Otherwise, we will try to get your assembly to accept this code
>> (but looking at the error messages, it looks hopeless).
> 
> I'm using original toolchain that came with development for Viper
> board from Arcom. That probably was time of 2.4 kernels... Trouble
> with upgrading of toolchain I'm afraid of - is that all packages,
> libraries etc., that I used thus far with our embedded application
> will become obsolete and will need to be recompiled with this new
> compiler.

Ok, what version of gcc/binutils ? You can workaround this build issue,
by using the generic implementation of xnarch_nodiv_llimd. In
incldude/asm-arm/arith.h, replace

#if __LINUX_ARM_ARCH >= 4
with
#if __LINUX_ARM_ARCH >= 4 && __GNUC__ >= 4

Assuming that your gcc version is 3.something.

> 
> As to my first problem with assigning of general interrupt handler to
> chained irq acknowledgment, I'll try to change my code to go with it,

Please try what I told you: replacing handle_irq with __ipipe_handle_irq
in Linux' original irq handler.

> as my real-time handler for chained interrupt does actually call some
> 'acknowledgment' that is based on general interrupt handler. It's
> just it took quite a time to figure out weird behaviour of my
> application when I switched to new Xenomai and couldn't find any info
> about how Xenomai changes chained interrupts handling. That caused
> some frustration. May be there should be some sort of Howto about it
> on Xenomai site?

Actually this is described in the howto porting the I-pipe for arm to a
new board:
http://www.xenomai.org/index.php/I-pipe:ArmPorting#New_variables_and_functions
see ipipe_irq_mux_p and ipipe_demux_irq

But the problem is that the generic code changed and I missed that
change, so the old way is documented, not the new one.

> 
> Thanks a lot for you help.
> 
> Best regards,
> 
> Ivan
> 
> 
> 
> _______________________________________________ Xenomai-help mailing
> list [email protected] https://mail.gna.org/listinfo/xenomai-help


-- 
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to