How to execute the first "userland" code ?
Posted: Sat Aug 18, 2012 3:00 am
Hello,
I have a code (my little kernel written in 80386 assembly) running in ring 0 and I'd like to transfer the execution to some other code in the less privileged ring (ring 3) to start executing the userspace code.
What is the best way to do it ? Is the using of task switching (using TSS) needed to do this ?
I'd appreciate also a link to a good documentation on this so I can study the theory myself.
Thanks a lot !
online
I have a code (my little kernel written in 80386 assembly) running in ring 0 and I'd like to transfer the execution to some other code in the less privileged ring (ring 3) to start executing the userspace code.
What is the best way to do it ? Is the using of task switching (using TSS) needed to do this ?
I'd appreciate also a link to a good documentation on this so I can study the theory myself.
Thanks a lot !
online