Mail Archives: djgpp/1994/11/18/07:45:46
I'm attempting to write a multitasking application under dos using GCC.
In order to do this, I need to explicitly allocate and manipulate
stacks for each individual task by directly fiddling with the stack
pointer (esp). For this to work, my data segement selector (ds) and
my stack segment selector (ss) must point to the same descriptor (I'm
using malloc() to allocate stack frames). Well, under plain dos,
it seams GO32 sets ds and ss to point to the same descriptor. Under
Windows, however, they point to different selectors. Why is this?
- Raw text -