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-ia64-devel

[Xen-ia64-devel] [PATCH] frametable_miss only exists when CONFIG_VIRTUAL

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: [Xen-ia64-devel] [PATCH] frametable_miss only exists when CONFIG_VIRTUAL_FRAME_TABLE
From: Aron Griffis <aron@xxxxxx>
Date: Mon, 02 Jul 2007 10:11:11 -0400
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 Jul 2007 07:21:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
1 file changed, 4 insertions(+), 3 deletions(-)
xen/arch/ia64/xen/xenpatch.c |    7 ++++---


# HG changeset patch
# User Aron Griffis <aron@xxxxxx>
# Date 1183382996 14400
# Node ID 128a4a10373528836fa03ea7737558a73dbfcde7
# Parent  877aa0a215fb71aa4f2c0e0ff5baa56f20a1ab5f
frametable_miss only exists when CONFIG_VIRTUAL_FRAME_TABLE

Tested by building without CONFIG_VIRTUAL_FRAME_TABLE

Signed-off-by: Aron Griffis <aron@xxxxxx>

diff -r 877aa0a215fb -r 128a4a103735 xen/arch/ia64/xen/xenpatch.c
--- a/xen/arch/ia64/xen/xenpatch.c      Mon Jul 02 09:28:55 2007 -0400
+++ b/xen/arch/ia64/xen/xenpatch.c      Mon Jul 02 09:29:56 2007 -0400
@@ -90,25 +90,26 @@ ia64_patch_imm64 (u64 insn_addr, u64 val
        ia64_patch(insn_addr + 1, 0x1ffffffffffUL, val >> 22);
 }
 
-extern char frametable_miss;
-extern unsigned long xen_pstart;
-
 /*
  * Add more patch points in seperate functions as appropriate
  */
 
 static void __init xen_patch_frametable_miss(u64 offset)
 {
+#ifdef CONFIG_VIRTUAL_FRAME_TABLE
+       extern char frametable_miss;
        u64 addr, val;
 
        addr = (u64)&frametable_miss;
        val = get_imm64(addr) + offset;
        ia64_patch_imm64(addr, val);
+#endif
 }
 
 
 void __init xen_patch_kernel(void)
 {
+       extern unsigned long xen_pstart;
        unsigned long patch_offset;
 
        patch_offset = xen_pstart - (KERNEL_START - PAGE_OFFSET);

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

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