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

[Xen-devel] GET_CURRENT macro in entry.S

To: xen-devel@xxxxxxxxxxxxxxxxxxx, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>
Subject: [Xen-devel] GET_CURRENT macro in entry.S
From: "pallavi jk" <pallutai@xxxxxxxxx>
Date: Mon, 29 Dec 2008 22:15:13 +0530
Cc:
Delivery-date: Mon, 29 Dec 2008 08:45:37 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=JOneTRZb+Cepe+Yg+Xvh4CR+bWzmHkTMLJTSl8t7hbU=; b=lIZap+pWFomzIJe1lkNx0MIwJDeG2fVMdkK1bzQ+2qITxqs3pzktbbbcqsuwzapsyd 20f7Xw9Y46GrS6WKFsrcCr/kj3kW6cZwinSI+Fl7CUc7ySXGnBNdYIUFr5U+hzw0WK1S aP0pwHB5PNhChfaVyDOKL8GaYNxOnYwdQ2k+A=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=o+Y6z2JR8etN17p4GACzYlzhdihaOGT6N/q06aX69ypTKHgsUxlNx0eWCbXFdOnmhH riZbrEZ3sEeD3ssvTYEztonbF3yPftC77Mibnd7AjT+cBWe141oziMFVOR8Llg7EZHEQ PklW5KiXz9OhVO9Cb5x8hGowMYagWwHHZBxag=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I am unable to understand what this macro in  entry.S does. Can someone please explain its working?
 
#define GET_CURRENT(reg)         \
        movl $STACK_SIZE-4, reg; \
        orl  %esp, reg;          \
        andl $~3,reg;            \
        movl (reg),reg;

Also, how does the address of "struct vcpu" come in %ebx ? How do I obtain it?

Please help.

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