From: Jan Kiszka <jan.kiszka@domain.hid>
To: rpm@xenomai.org
Cc: Hubert Talbot <Hubert.Talbot@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686)
Date: Sat, 16 Feb 2008 12:21:54 +0100 [thread overview]
Message-ID: <47B6C752.4080503@domain.hid> (raw)
In-Reply-To: <47B45F5D.60509@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]
Philippe Gerum wrote:
> Hubert Talbot wrote:
>> Hi,
>>
>> I try to build kernel 2.6.24 with adeos-ipipe-2.6.24-x86-2.0-03.patch
>> and I get this:
>>
>> ...
>> AR arch/x86/lib/lib.a
>> GEN .version
>> CHK include/linux/compile.h
>> UPD include/linux/compile.h
>> CC init/version.o
>> LD init/built-in.o
>> LD .tmp_vmlinux1
>> arch/x86/kernel/built-in.o: In function `do_machine_check_vector':
>> ipipe.c:(.text+0x128de): undefined reference to `do_machine_check'
>> make[1]: *** [.tmp_vmlinux1] Erreur 1
>> make[1]: quittant le répertoire * /usr/src/linux-2.6.24 *
>> make: *** [debian/stamp-build-kernel] Erreur 2
>>
>
> It's a 64bit symbol only it seems. Disable CONFIG_X86_MCE for now, will
> fix. Thanks.
Here is some fix for this:
---
arch/x86/kernel/ipipe.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Index: b/arch/x86/kernel/ipipe.c
===================================================================
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -644,8 +644,13 @@ asmlinkage int __ipipe_syscall_root(stru
static void do_machine_check_vector(struct pt_regs *regs, long error_code)
{
#ifdef CONFIG_X86_MCE
+#ifdef CONFIG_X86_32
+ extern void (*machine_check_vector)(struct pt_regs *, long error_code);
+ machine_check_vector(regs, error_code);
+#else /* !CONFIG_X86_32 */
void do_machine_check(struct pt_regs *, long);
- do_machine_check(regs,error_code);
+ do_machine_check(regs, error_code);
+#endif /* !CONFIG_X86_32 */
#endif /* CONFIG_X86_MCE */
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
prev parent reply other threads:[~2008-02-16 11:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5479.1202920211.28415.xenomai@xenomai.org>
2008-02-14 15:17 ` [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686) Hubert Talbot
2008-02-14 15:33 ` Philippe Gerum
2008-02-16 11:21 ` Jan Kiszka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B6C752.4080503@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Hubert.Talbot@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.