Mail Archives: djgpp-workers/2001/08/02/06:20:25
On Wed, 1 Aug 2001, Charles Sandmann wrote:
> My first thought is to add a new flag for the non-move sbrk() which will
> prevent memory wrapped dpmi blocks from being used. This flag would always
> be forced on if running on NT. It would also be useful option on Win9X
> systems to prevent weird selectors that span the entire memory space.
> This is probably easier to implement, but since we sbrk() the stack before
> calling any setup code we would either leave a window of breakage or would
> need to move dos version queries to crt0 :-P
>
> My next thought was to check the limit we set, and if it didn't "stick" to
> toss the block and try again. Looking at how each bit is carefully crafted
> in crt0 makes be believe this will cause some hair loss.
I don't understand the difference between these two alternatives
(_are_ they alternatives?).
As I've said earlier, I don't see anything bad in testing the DOS
version in crt0. It's a straightforward code, and it's short.
- Raw text -