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] Parameters to hypercalls

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] Parameters to hypercalls
From: Haavard Bjerke <havard.bjerke@xxxxxxx>
Date: Wed, 4 May 2005 11:52:19 +0200
Delivery-date: Wed, 04 May 2005 09:51:50 +0000
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/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
User-agent: Mutt/1.4i
I want to pass a parameter with the evtchn_op hypercall, which is a pointer, 
*op. How do I do this? Can I just load it in a register, say r3, when issuing 
the hypercall and then store from r3 in the hypervisor, like this:

xenlinux:
        /* load pointer to r3 */
        asm volatile("ld8 r3=%0;"
                :: "m" (op)
                : "r3");

        /* hypercall */
        asm volatile("mov r2=%0; break %1;"
                :: "i" (HYPERCALL_EVTCHN_OP), "i" (BREAKIMM)
                : "r2", "r8", "memory");                        

hypervisor:
        /* get pointer from r3 */
        asm volatile("st8 %0=r3;"
                : "=m" (op)
                :: "r3");

This doesn't work, why?

Thanks,
Håvard

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

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