OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:30 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Use of sysenter/sysexit
PostPosted: Mon Aug 26, 2019 12:29 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: Use of sysenter/sysexit
PostPosted: Mon Aug 26, 2019 1:28 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
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?


Top
 Profile  
 
 Post subject: Re: Use of sysenter/sysexit
PostPosted: Tue Aug 27, 2019 3:54 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
Thanks so much dear friend.

I'm doing in the way you said.

tnx a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], Google [Bot] and 63 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group