[prev in list] [next in list] [prev in thread] [next in thread]
List: bochs-dev
Subject: Re: [Bochs-developers] ENTRY_ARG?
From: "Kevin O'Connor" <kevin () koconnor ! net>
Date: 2008-04-11 0:53:32
Message-ID: 20080411005332.GE4749 () ohio ! lan
[Download RAW message or body]
Hi,
I'm cc'ing the bochs list.
On Thu, Apr 10, 2008 at 04:08:18PM +0900, Nguyen Anh Quynh wrote:
> hi,
>
> in ENTRY_ARG you save %esp into %ebx before calling C function. after
> returning from C function, you restore back %esp from %ebx. how can
> you make sure that the C function doesnt clobber %ebx?
>
> cheers,
> Q
That is the x86 calling convention. eax, ecx, and edx are call
clobbered. The remaining general purpose registers (ebx, esi, edi,
ebp) are call saved.
-Kevin
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
bochs-developers mailing list
bochs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic