Mail Archives: djgpp-workers/1996/03/27/10:44:46
>
> If you are talking about the Swappable Data Area (SDA), then beware: it
> would probably work under native DOS, but I'd expect it to crash and burn
> under Win 3.11 and Win95 when 32-bit file access is used (to say nothing
> about WinNT and Linux). All these work by catching DOS calls and
> redirecting them into totally different code and data structures. Now
> guess: what are the chances that MS designed those replacements for DOS
> to be reentrant?
>
> The code to get the address of the SDA can be found on stat.c in the DJGPP
> library sources. There is no DOS call to swap it in or out AFAIK; you
> will have to do it yourself. There are more details about this technique
> in the chapter on TSRs in ``Undocumented DOS'', 2nd ed.
>
I gave up on time-slicing, since it's not required by the Ada language. W/o
it the threads library works great and Ada tasking is now fully implemented
in the DOS version of GNAT, and will be in the next release.
The next thing to do is get stack checking working, for which I need a
sigaltstack() function. Any thoughts on this?
- Raw text -