WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Kernel panic while compiling kernel

To: Zachary Amsden <zamsden@xxxxxxxxx>
Subject: Re: [Xen-devel] Kernel panic while compiling kernel
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 18 Feb 2004 19:54:20 +0000
Cc: "Tvrtko A. Uršulin" <tvrtko@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 18 Feb 2004 22:50:34 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Wed, 18 Feb 2004 11:08:33 PST." <4033B831.2080401@xxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> xen/include/asm-i386/apic.h for one... and there are more dangerous 
> looking things:
> 
> xen/include/asm-i386/dma.h includes both "linux/config.h" and 
> "linux/spinklock.h".  This is very likely to be built into the drivers, 
> and likely to cause major havoc if you change the cacheline size.
>
> Only arch/i386/Rules.mk specifies -nostdinc.  This is really dangerous 
> if you are not building on a 2.4.24 or very close kernel, and makes 
> cross-compiling out of the question.
> 
> I should have a patch for a slightly cleaner build today that you could 
> try out.  It's likely to be largish, since I may need to pull in some 
> additional headers from 2.4.24.

I'm not sure that I understand what you are trying to do. 
#include <linux/foo.h> and #include <xeno/foo.h> should mean the same
thing when building Xen -- all kernel object files should be built
with -nostdinc, and incude/linux is a symlink to include/xeno.

When building Linux for Xen, it does not use any Xen headers except
those in include/hypervisor-ifs -- all other headers are private to
Xen!

It sounds like you may be spending time on something that isn''t
broken. :-(

 -- Keir


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel