[Solved] Ring3 interrupts playing with stack
Posted: Sun Mar 09, 2014 1:15 am
Hey guys! I think the TSS might be causing this, but I figured id ask here.
So in a program of mine I tried to call INT 80 in Ring3, no problem that works fine. However I push 3 values before the call, and then I notice after the interrupt begins running EIP, CS, Flags, User SS, and User SP are pushed onto the stack which is correct, however the stack like jumps up and the overwrites my values? Is this because on interrupts the CPU changes the stack if you are in Ring3?
Thanks
So in a program of mine I tried to call INT 80 in Ring3, no problem that works fine. However I push 3 values before the call, and then I notice after the interrupt begins running EIP, CS, Flags, User SS, and User SP are pushed onto the stack which is correct, however the stack like jumps up and the overwrites my values? Is this because on interrupts the CPU changes the stack if you are in Ring3?
Thanks