Code: Select all
//PUSH ds, es, fs, gs / POP gs, fs, es, ds
*Stack-- = 0x10; //DS
*Stack-- = 0x10; //ES
*Stack-- = 0x10; //FS
*Stack-- = 0x10; //GS
Code: Select all
//PUSH ds, es, fs, gs / POP gs, fs, es, ds
*Stack-- = 0x10; //DS
*Stack-- = 0x10; //ES
*Stack-- = 0x10; //FS
*Stack = 0x10; //GS
Now another problem (I'm getting tired of having to ask questions/sorry for asking so many):
When it gets called, it never gets called again. It seems interrupts somehow got disabled or something.
The only thing is that I added an inline "sti" to the loop of both tasks, and it still won't return to the handler again.
Any ideas?