Page 1 of 1

what is the fatest way to trigger ring 0 code?

Posted: Wed Feb 11, 2009 12:50 pm
by jtlb
I am looking for the fastest method for user code to trigger supervisor code. From what i read i think it is the syenter/sysexit and syscall/sysret pairsbut i'm not sure.

Re: what is the fatest way to trigger ring 0 code?

Posted: Wed Feb 11, 2009 2:37 pm
by AJ
Moved topic and I believe you are correct - it's sysenter/exit and syscall/ret.

Cheers,
Adam

Re: what is the fatest way to trigger ring 0 code?

Posted: Wed Feb 11, 2009 3:15 pm
by Combuster
At least, they were designed to be faster than conventional methods. The problem is, they aren't supported on all systems while far calls (brendan's next favorite) are.

Re: what is the fatest way to trigger ring 0 code?

Posted: Wed Feb 11, 2009 3:29 pm
by jtlb
Combuster wrote:At least, they were designed to be faster than conventional methods. The problem is, they aren't supported on all systems while far calls (brendan's next favorite) are.
Are far calls, calls using a special gate in the GDT? And how slower is it?

Re: what is the fatest way to trigger ring 0 code?

Posted: Wed Feb 11, 2009 3:42 pm
by Combuster