This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] smp_processor_id() missing when compiling linux-2.6-xen.

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] smp_processor_id() missing when compiling linux-2.6-xen.hg without SMP
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxx>
Date: Mon, 9 Jan 2006 23:32:31 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 09 Jan 2006 22:38:42 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30601030220rdad85b5g6a5efb0a52f2bf74@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <e08041f30601030220rdad85b5g6a5efb0a52f2bf74@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Jan 03, 2006 at 11:20:57AM +0100, Jacob Gorm Hansen wrote:
> I found I needed the patch to arch/i386/kernel/i8237.c below in order
> to compile linux-2.6-xen.hg without SMP, or I smp_processor_id() would
> be undefined. I am not sure if this is the correct way to fix the
> problem though.

This is not the right fix. (hint: i8237 is not modified by xen and has
nothing to do with smp)
Unfortunately, properly fixing the bug is not trivial.

basicly linux/smp.h has to be included before xen's system.h get
included for the compilation to succeed. As the i386 kernel
doesn't need this assertion, it's not working for i8237..

I tried a couple of things, but they all lead to some funky errors ..

Vincent Hanquez

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>