2 Oct 2006 10:40
Re: SH4 port
Jan Kiszka <jan.kiszka <at> web.de>
2006-10-02 08:40:53 GMT
2006-10-02 08:40:53 GMT
Jan Kiszka wrote: > Kiichi Kameda wrote: >> ... >> After tough investigation, I think I found some clues such as: >> While in.ftpd runs hard, a "write" system call was issued and Linux >> kernel was processing its request. >> But weird __ipipe_dispatch_event and __ipipe_sync_stage was recorded. >> >> I think the problem originates from a Xenomai context switch(which >> overwrites "current"), while Linux is processing system call. > > If I interpret linux/include/asm-sh/current.h correctly, current is > derived from the stack on your platform (like on most archs) and cannot That's nonsense as I realised later by following the code down to include/asm-sh/thread_info.h: current_thread_info seems to get referenced by some register. Still the question remains for me why this should be a general Xenomai problem. Xenomai may overwrite the content on switch_to (but I don't know your patch, how you realised context switches between RT tasks on SH4), but then it should definitely also restore it again on returning to Linux. Jan
_______________________________________________ Xenomai-help mailing list(Continue reading)
.
>
> Note: this patch requires another small fix for Xenomai (see
> attachment). Philippe, could you please apply it? TIA.
Thank you for the 2.6.17 patch, but unfortunately it did not work.
I had problems with both patches. The xenomai patch expected 2 lines
in the source that are not in the original xenomai sources. But i
patched it manual.
The Kernel Patch does not work with the prepare-kernel script. It stops with:
grep: /home/amg/linux-2.6.17/include/asm-powerpc/ipipe.h: No such file
or directory
prepare-kernel.sh: /home/amg/linux-2.6.17 has no Adeos support for powerpc
ipipe.h is in asm-ppc so i think it has something to do with the ppc
-> powerpc merge.
So i patched is manually. But in menuconfig the xenomai entries are
missing so i could not activate it to test it.
Syed Amer Gilani
RSS Feed