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] fix PAL call in physical mode.

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] fix PAL call in physical mode.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 20 Aug 2008 15:39:07 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Tue, 19 Aug 2008 23:35:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
[IA64] fix PAL call in physical mode.

Now firmware code is mapped at its own virtual address space
which is same to Linux. So the calculation from virutal 
address to physical address should be same to the linux one.
In practice firmware is located in low physical address area
so that masking 60 bit instead of 61 bits doesn't make difference.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 24a1bf51c749 xen/arch/ia64/linux-xen/pal.S
--- a/xen/arch/ia64/linux-xen/pal.S     Thu Aug 07 18:22:56 2008 +0900
+++ b/xen/arch/ia64/linux-xen/pal.S     Thu Aug 07 18:26:52 2008 +0900
@@ -163,8 +163,9 @@
        ;;
        mov loc4=ar.rsc                 // save RSE configuration
 #ifdef XEN
-       dep.z loc2=loc2,0,60            // convert pal entry point to physical
-#else // XEN
+       // firmware is mapped to the address same to Linux case.
+       dep.z loc2=loc2,0,61            // convert pal entry point to physical
+#else
        dep.z loc2=loc2,0,61            // convert pal entry point to physical
 #endif // XEN
        tpa r8=r8                       // convert rp to physical
@@ -220,7 +221,8 @@
        ;;
        mov loc4=ar.rsc                 // save RSE configuration
 #ifdef XEN
-       dep.z loc2=loc2,0,60            // convert pal entry point to physical
+       // firmware is mapped to the address same to Linux case.
+       dep.z loc2=loc2,0,61            // convert pal entry point to physical
 #else // XEN
        dep.z loc2=loc2,0,61            // convert pal entry point to physical
 #endif // XEN

Attachment: fix-phys-call.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>