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-changelog

[Xen-changelog] [xen-unstable] [IA64] SN2 specific SAL calls for dom0

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] SN2 specific SAL calls for dom0
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Mar 2007 05:30:14 -0700
Delivery-date: Fri, 23 Mar 2007 05:29:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1172685350 25200
# Node ID 347fb33790bdd93bcddffbe0e11b69756d4c6fb3
# Parent  2e2019e09e6c21bc0e072bd4e78d47a3bc87ea59
[IA64] SN2 specific SAL calls for dom0

Signed-off-by: Jes Sorensen <jes@xxxxxxx>
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/arch/ia64/xen/fw_emul.c |   65 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 64 insertions(+), 1 deletion(-)

diff -r 2e2019e09e6c -r 347fb33790bd xen/arch/ia64/xen/fw_emul.c
--- a/xen/arch/ia64/xen/fw_emul.c       Wed Feb 28 10:35:48 2007 -0700
+++ b/xen/arch/ia64/xen/fw_emul.c       Wed Feb 28 10:55:50 2007 -0700
@@ -22,6 +22,7 @@
 #include <linux/efi.h>
 #include <asm/pal.h>
 #include <asm/sal.h>
+#include <asm/sn/sn_sal.h>
 #include <asm/xenmca.h>
 
 #include <public/sched.h>
@@ -131,6 +132,7 @@ sal_emulator (long index, unsigned long 
              unsigned long in3, unsigned long in4, unsigned long in5,
              unsigned long in6, unsigned long in7)
 {
+       struct ia64_sal_retval ret_stuff;
        unsigned long r9  = 0;
        unsigned long r10 = 0;
        long r11 = 0;
@@ -375,8 +377,69 @@ sal_emulator (long index, unsigned long 
                if (!test_and_set_bit(_VCPUF_down, &current->vcpu_flags))
                        vcpu_sleep_nosync(current);
                break;
+           case SN_SAL_GET_MASTER_NASID:
+               status = -1;
+               if (current->domain == dom0) {
+                       printk("*** Emulating SN_SAL_GET_MASTER_NASID ***\n");
+                       SAL_CALL_NOLOCK(ret_stuff, SN_SAL_GET_MASTER_NASID,
+                                       0, 0, 0, 0, 0, 0, 0);
+                       status = ret_stuff.status;
+                       r9 = ret_stuff.v0;
+                       r10 = ret_stuff.v1;
+                       r11 = ret_stuff.v2;
+               }
+               break;
+           case SN_SAL_GET_KLCONFIG_ADDR:
+               status = -1;
+               if (current->domain == dom0) {
+                       printk("*** Emulating SN_SAL_GET_KLCONFIG_ADDR ***\n");
+                       SAL_CALL_NOLOCK(ret_stuff, SN_SAL_GET_KLCONFIG_ADDR,
+                                       in1, 0, 0, 0, 0, 0, 0);
+                       status = ret_stuff.status;
+                       r9 = ret_stuff.v0;
+                       r10 = ret_stuff.v1;
+                       r11 = ret_stuff.v2;
+               }
+               break;
+           case SN_SAL_GET_SAPIC_INFO:
+               status = -1;
+               if (current->domain == dom0) {
+                       printk("*** Emulating SN_SAL_GET_SAPIC_INFO ***\n");
+                       SAL_CALL_NOLOCK(ret_stuff, SN_SAL_GET_SAPIC_INFO, in1,
+                                       0, 0, 0, 0, 0, 0);
+                       status = ret_stuff.status;
+                       r9 = ret_stuff.v0;
+                       r10 = ret_stuff.v1;
+                       r11 = ret_stuff.v2;
+               }
+               break;
+           case SN_SAL_GET_SN_INFO:
+               status = -1;
+               if (current->domain == dom0) {
+                       printk("*** Emulating SN_SAL_GET_SN_INFO ***\n");
+                       SAL_CALL_NOLOCK(ret_stuff, SN_SAL_GET_SN_INFO, in1,
+                                       0, 0, 0, 0, 0, 0);
+                       status = ret_stuff.status;
+                       r9 = ret_stuff.v0;
+                       r10 = ret_stuff.v1;
+                       r11 = ret_stuff.v2;
+               }
+               break;
+           case SN_SAL_IOIF_GET_HUBDEV_INFO:
+               status = -1;
+               if (current->domain == dom0) {
+                       printk("*** Emulating SN_SAL_IOIF_GET_HUBDEV_INFO 
***\n");
+                       SAL_CALL_NOLOCK(ret_stuff, SN_SAL_IOIF_GET_HUBDEV_INFO,
+                                       in1, in2, 0, 0, 0, 0, 0);
+                       status = ret_stuff.status;
+                       r9 = ret_stuff.v0;
+                       r10 = ret_stuff.v1;
+                       r11 = ret_stuff.v2;
+               }
+               break;
            default:
-               printk("*** CALLED SAL_ WITH UNKNOWN INDEX.  IGNORED...\n");
+               printk("*** CALLED SAL_ WITH UNKNOWN INDEX (%lx).  "
+                      "IGNORED...\n", index);
                status = -1;
                break;
        }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] SN2 specific SAL calls for dom0, Xen patchbot-unstable <=