From e4daaaabe1ec5c47105ab7b9e46086becec147b0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 6 Apr 2007 11:17:08 +0100 Subject: PV-on-HVM: A bit more re-jigging so the build gets further against native Linux 2.6.5. It's not quite there still, but closer. Signed-off-by: Keir Fraser --- unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 4 ++++ unmodified_drivers/linux-2.6/platform-pci/platform-pci.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'unmodified_drivers') diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index f6a9371034..1f604a0e1a 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -96,6 +96,10 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...) #define handle_sysrq(x,y,z) handle_sysrq(x,y) #endif +#if defined(_PAGE_PRESENT) && !defined(_PAGE_NX) +#define _PAGE_NX 0 +#endif + /* * This variable at present is referenced by netfront, but only in code that * is dead when running in hvm guests. To detect potential active uses of it diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c index 8e69557ac8..2451b7c6ce 100644 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c @@ -1,6 +1,6 @@ /****************************************************************************** - * evtchn-pci.c - * xen event channel fake PCI device driver + * platform-pci.c + * Xen platform PCI device driver * Copyright (C) 2005, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it -- cgit v1.2.3