From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: References: <1248453047.3998.168.camel@domain.hid> <1248461458.3998.183.camel@domain.hid> <1248517986.4438.1.camel@domain.hid> <1248855797.3247.16.camel@domain.hid> <1248883517.3532.7.camel@domain.hid> <1249287753.4803.10.camel@domain.hid> Content-Type: text/plain Date: Wed, 05 Aug 2009 13:58:15 +0200 Message-Id: <1249473495.3809.22.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Stack sizes etc. (Re: POSIX skin/Blackfin: SIGSEGV when stracing or gdb'ing) List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenoka09@domain.hid Cc: xenomai@xenomai.org On Mon, 2009-08-03 at 19:29 +0200, Kolja Waschk wrote: > Hi, > > > - if the first option does not work, override the shipped Xenomai > > release with a stock one for testing: > > I've now managed to use the prepare-kernel.sh (with > adeos-ipipe-2.6.28.10-blackfin.git-1.10-00.patch as it comes with > xenomai-2.4.8) on the 2.6.28.10 kernel that comes as "linux-2.6.x" with > uClinux-dist 2009R1-RC2. Unfortunately, the three files ipipe.h, > ipipe.c and ints-priority.c therein already contain the changes from the > 1.10 patch, so to apply that patch, they had to be reverted beforehand. > > In userland and for my application I used stock xenomai-2.4.8; only the > xenomai-2.4.x.patch from uClinux-dist/user/xenomai had to be applied > so that /usr can be specified as a destination during configure. But > that patch doesn't change anything in the code. > > Now, well, what should I say - the xnshadow call still fails. Or > whatever the real cause for this message is... > Does this help? diff --git a/ksrc/arch/blackfin/switch.S b/ksrc/arch/blackfin/switch.S index 906e5f5..6696a2f 100644 --- a/ksrc/arch/blackfin/switch.S +++ b/ksrc/arch/blackfin/switch.S @@ -85,15 +85,19 @@ ENTRY(_rthal_defer_switch_p) r1 = EVT_IVG15 (z); r0 = r0 & r1; cc = r0 == 0; - if !cc jump 1f; + if !cc jump 1f; #endif /* CONFIG_XENO_OPT_PERVASIVE */ p2.l = lo(IPEND); p2.h = hi(IPEND); csync; r2 = [p2]; - r1 = 1; - r1 = r2 - r1; + r1 = LO(~0x13) (Z); r0 = r2 & r1; + cc = r0 == 0; + if cc jump 1f; + r1 = 1; + r1 = r0 - r1; + r0 = r0 & r1; 1: rts @@ -108,4 +112,4 @@ ENTRY(_rthal_nmi_handler) RESTORE_ALL_SYS rtn; -#endif /* CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX */ +#endif /* CONFIG_XENO_HW_NMI_DEBUG_LATENCY */ > Kolja > -- Philippe.