From: Philippe Gerum In-Reply-To: <4A3FD089.6000808@domain.hid> References: <4A3E9E09.7060109@domain.hid> <1245660331.4087.46.camel@domain.hid> <4A3FD089.6000808@domain.hid> Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Jun 2009 21:45:57 +0200 Message-Id: <1245699957.4121.39.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] kernel build fails with CONFIG_X86_MCE_P4THERMAL=y List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Kisdaroczi Cc: xenomai@xenomai.org On Mon, 2009-06-22 at 20:42 +0200, Stefan Kisdaroczi wrote: > Philippe Gerum schrieb: > > On Sun, 2009-06-21 at 22:54 +0200, Stefan Kisdaroczi wrote: > > =20 > >> hi, > >> > >> if 'check for P4 thermal throttling interrupt.' (=20 > >> CONFIG_X86_MCE_P4THERMAL ) is enabled, kernel builds ok with 2.6.28,= but=20 > >> fails with adeos-ipipe-2.6.29.5-x86-2.4-02.patch: > >> > >> arch/x86/kernel/ipipe.c: In function =E2=80=98__ipipe_enable_pipelin= e=E2=80=99: > >> arch/x86/kernel/ipipe.c:210: error: =E2=80=98smp_thermal_interrupt=E2= =80=99 undeclared=20 > >> (first use in this function) > >> arch/x86/kernel/ipipe.c:210: error: (Each undeclared identifier is=20 > >> reported only once > >> arch/x86/kernel/ipipe.c:210: error: for each function it appears in.= ) > >> make[3]: *** [arch/x86/kernel/ipipe.o] Fehler 1 > >> make[2]: *** [arch/x86/kernel] Fehler 2 > >> > >> =20 > > > > Thanks. I will push 2.4-03 out after I have received confirmation tha= t > > everything is fine on your side. TIA, > > =20 > the kernel compiled fine now with P4THERMAL enabled. thanks. > hint: did you notice the CONFIG_X86_64 ? same problem ? >=20 X86_64 declares smp_thermal_interrupt() properly in asm/traps.h, not X86_32 unfortunately. > +#if defined(CONFIG_X86_MCE_P4THERMAL) || defined(CONFIG_X86_64) > + ipipe_virtualize_irq(ipipe_root_domain, > + ipipe_apic_vector_irq(THERMAL_APIC_VECTOR), > + (ipipe_irq_handler_t)&smp_thermal_interrupt, > + NULL, > + &__ipipe_ack_apic, > + IPIPE_STDROOT_MASK); > +#endif /* CONFIG_X86_MCE_P4THERMAL || CONFIG_X86_64 */ >=20 > > diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c > > index 28cc903..d186a4c 100644 > > --- a/arch/x86/kernel/ipipe.c > > +++ b/arch/x86/kernel/ipipe.c > > @@ -116,6 +116,9 @@ void smp_invalidate_interrupt(struct pt_regs *reg= s); > > void smp_call_function_interrupt(struct pt_regs *regs); > > void smp_call_function_single_interrupt(struct pt_regs *regs); > > void uv_bau_message_interrupt(struct pt_regs *regs); > > +#ifdef CONFIG_X86_32 > > +void smp_thermal_interrupt(struct pt_regs *regs); > > +#endif > > =20 > > static void __ipipe_ack_irq(unsigned irq, struct irq_desc *desc) > > { > > > > =20 > >> _______________________________________________ > >> Xenomai-help mailing list > >> Xenomai-help@domain.hid > >> https://mail.gna.org/listinfo/xenomai-help > >> =20 >=20 --=20 Philippe.