I write a process switch in dos, it can work switch proc_a, proc_b, but I don't know how to save/restore ss:esp. In protected mode, iret/int will save/restore ss:esp in different privilege.
my code:
https://github.com/descent/process/blob ... /process.S
Any suggestions are welcome.
process swtich in x86 real mode how to save/restore ss:esp
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: process swtich in x86 real mode how to save/restore ss:e
Think about how you save all the other (segment) registers.