* Xen hypercall calling convention
@ 2015-12-04 3:21 Carl Patenaude Poulin
2015-12-04 10:08 ` Andrew Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Carl Patenaude Poulin @ 2015-12-04 3:21 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]
Hi folks,
On page 12 of "The Definitive Guide to the Xen Hypervisor", it is mentioned
that "Xen, like Linux, uses the MS-DOS calling convention, rather than the
UNIX convention used by FreeBSD."
I keep digging online and I can't find any information about an "MS-DOS
calling convention". We've already reverse engineered which registers are
used in what order from the Mini-OS source code, but I'm wondering if
there's a specification of this calling convention floating anywhere.
Also, is the x86_64 calling convention much different? Are the differences
following any particular standard?
Best
[-- Attachment #1.2: Type: text/html, Size: 1143 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Xen hypercall calling convention
2015-12-04 3:21 Xen hypercall calling convention Carl Patenaude Poulin
@ 2015-12-04 10:08 ` Andrew Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2015-12-04 10:08 UTC (permalink / raw)
To: Carl Patenaude Poulin, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1012 bytes --]
On 04/12/15 03:21, Carl Patenaude Poulin wrote:
> Hi folks,
>
> On page 12 of "The Definitive Guide to the Xen Hypervisor", it is
> mentioned that "Xen, like Linux, uses the MS-DOS calling convention,
> rather than the UNIX convention used by FreeBSD."
>
> I keep digging online and I can't find any information about an
> "MS-DOS calling convention".
Second google link,
www.agner.org/optimize/calling_conventions.pdf
except that you want to be looking for Windows 16bit as its alternative
name.
> We've already reverse engineered which registers are used in what
> order from the Mini-OS source code, but I'm wondering if there's a
> specification of this calling convention floating anywhere.
The in-tree public header files are the authoritative source of
information, so
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/arch-x86/xen-x86_32.h;hb=HEAD
and
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/arch-x86/xen-x86_64.h;hb=HEAD
respectively.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 2650 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-04 10:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 3:21 Xen hypercall calling convention Carl Patenaude Poulin
2015-12-04 10:08 ` Andrew Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.