Task switching (ring0<->ring3)
Posted: Fri Apr 20, 2007 12:48 am
I heard about TSS to switch between processes.
(whatever sw or hw task switching)
then I think, I should to make the default TSS data.
and I have to fill the value of ESP0 and SS0 in the TSS.
in this case, When task switching occurs, CPU will load ESP0 and SS0 in a default initialized TSS. but current stack is used by another process. and it indicates same area. it means, next process will overwrite current process's first area of stack.
isn't it make any problem?
(whatever sw or hw task switching)
then I think, I should to make the default TSS data.
and I have to fill the value of ESP0 and SS0 in the TSS.
in this case, When task switching occurs, CPU will load ESP0 and SS0 in a default initialized TSS. but current stack is used by another process. and it indicates same area. it means, next process will overwrite current process's first area of stack.
isn't it make any problem?