On Sun, 29 Feb 2004, FreeCOM wrote:

>
> > * init_call_p_0() will need to (in a .asm file):
> >   set SS and DS to the DOS data segment (DGROUP, cs:[_DGROUP_])
> >   set SP to the top of a special p_0 stack (how many bytes for that
> >   stack?)
>
> Why not use the I/O stack (char_api_tos)? When process0 terminates & the
> InDOS flag is set, this stack should be free for use, because no other
> system call can take place and TSRs and the like are hold off by the
> InDOS flag. And this stack should not be in use when DOS-4C is initiated.

this may be possible but tricky in C. As the code must make sure it
doesn't use any stack that it relies from before int21/ah=4b after
int21/ah=4b.

Bart




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to