Page 1 of 1

Use of sysenter/sysexit

Posted: Mon Aug 26, 2019 12:29 pm
by digo_rp
Hi guys, how have you beem? good I hope!, now could anyone help me on using sysenter/sysexit? I don't know if i'm using in the right way!

example.

setup stack, etc.
sysenter.

do operating system calls etc.
sysexit.

ret.

or do I need to use like:

setup stack:
sysenter.
int xx.
sysexit
etc.
etc.
ret

could anyone help please?

thanks in advance!

Re: Use of sysenter/sysexit

Posted: Mon Aug 26, 2019 1:28 pm
by Octocontrabass
You're supposed to use SYSENTER instead of INT to call the operating system, and SYSEXIT instead of IRET to return to the application program. (You have to make some more changes for it to work properly, but that's the basic idea.)

Does that answer your question?

Re: Use of sysenter/sysexit

Posted: Tue Aug 27, 2019 3:54 pm
by digo_rp
Thanks so much dear friend.

I'm doing in the way you said.

tnx a lot.