Subject: Re: [PATCH][4.14] arm/ipipe: Fix IPIPE_TRAP_UNDEFINSTR reporting References: <6be2fdec-0246-1169-67ad-882abb73cc5e@siemens.com> From: Jan Kiszka Message-ID: <84b6d0fc-97e3-e543-3d56-98daba195512@siemens.com> Date: Fri, 30 Nov 2018 21:14:01 +0100 MIME-Version: 1.0 In-Reply-To: <6be2fdec-0246-1169-67ad-882abb73cc5e@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum , Xenomai On 30.11.18 21:09, Jan Kiszka via Xenomai wrote: > Something moved the value of this constant but didn't update the > hard-coded instances. Fix this and avoid future problems by using the > proper symbolic value. > > That just requires harding asm/ipipe_base.h for assembly use. > > Signed-off-by: Jan Kiszka > --- Just checked: This is a regression of 4.14 over previous versions. > arch/arm/include/asm/ipipe_base.h | 6 ++++++ > arch/arm/kernel/entry-armv.S | 5 +++-- > 2 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/include/asm/ipipe_base.h b/arch/arm/include/asm/ipipe_base.h > index 34de7a0402aa..3cf11a0242a2 100644 > --- a/arch/arm/include/asm/ipipe_base.h > +++ b/arch/arm/include/asm/ipipe_base.h > @@ -23,10 +23,14 @@ > #ifndef __ASM_ARM_IPIPE_BASE_H > #define __ASM_ARM_IPIPE_BASE_H > > +#ifndef __ASSEMBLY__ > #include > +#endif > > #ifdef CONFIG_IPIPE > > +#ifndef __ASSEMBLY__ > + > #ifdef CONFIG_SMP > > extern unsigned __ipipe_first_ipi; > @@ -72,6 +76,8 @@ unsigned __ipipe_processor_id(void); > #define ipipe_processor_id() (0) > #endif /* !CONFIG_IPIPE */ > > +#endif /* !__ASSEMBLY__ */ > + > #define IPIPE_TRAP_MAYDAY 0 /* Internal recovery trap */ > > /* ARM traps */ > diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S > index 3569b3174372..311308e15485 100644 > --- a/arch/arm/kernel/entry-armv.S > +++ b/arch/arm/kernel/entry-armv.S > @@ -35,6 +35,7 @@ > #include "entry-header.S" > #include > #include > +#include > > /* > * Interrupt handling. > @@ -291,7 +292,7 @@ __und_svc: > #endif > > #ifdef CONFIG_IPIPE > - mov r0, #7 @ r0 = IPIPE_TRAP_UNDEFINSTR > + mov r0, #IPIPE_TRAP_UNDEFINSTR > mov r1, sp @ r1 = ®s > bl __ipipe_notify_trap @ branch to trap handler > cmp r0, #0 > @@ -519,7 +520,7 @@ __und_usr: > usr_entry uaccess=0 > > #ifdef CONFIG_IPIPE > - mov r0, #7 @ r0 = IPIPE_TRAP_UNDEFINSTR > + mov r0, #IPIPE_TRAP_UNDEFINSTR > mov r1, sp @ r1 = ®s > bl __ipipe_notify_trap @ branch to trap handler > cmp r0, #0 > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux