[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] GET_CURRENT macro in entry.S

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.