Use of sysenter/sysexit

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Use of sysenter/sysexit

Post 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!
Octocontrabass
Member
Member
Posts: 5581
Joined: Mon Mar 25, 2013 7:01 pm

Re: Use of sysenter/sysexit

Post 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?
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: Use of sysenter/sysexit

Post by digo_rp »

Thanks so much dear friend.

I'm doing in the way you said.

tnx a lot.
Post Reply