Re: [Freedos-kernel] commit - UNSTABLE

2004-07-26 Thread Arkady V.Belousov
Hi!

25-Июл-2004 16:46 [EMAIL PROTECTED] (Interim FreeDOS Kernel Maintainer)
wrote to [EMAIL PROTECTED]:

>> see in your posts some additions. Also, don't forget to publish URL for
IFM> These are fairly static URLs, and should be updated within a day of
IFM> any cvs commits.

 At which time? For example, Bart was says, that kernel.tgz updated at
14:00GMT.




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


NLSFUNC and callbacks into kernal (was Re: [Freedos-kernel] Strange bug in kernel 2035)

2004-07-26 Thread Steffen Kaiser
On Sat, 24 Jul 2004, Bart Oldeman wrote:
Hello Bart,
DOS has three internal stacks, how about switching to the Critical Error 
stack and defer any calls when the stack is in use?

Bye,
--
Steffen Kaiser
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Strange bug in kernel 2035

2004-07-26 Thread Eduardo Casino
Hello again,

> 2. nlsfunc would have to copy anything in between ss:sp and ss:920
>(_disk_api_tos, that's the top of the stack used here in any DOS >= 
> 4.0) to a temp area (max 384 bytes), set sp to 920, and with that call 
> DOS. Then after the call adjust the stack pointer, then swap it back,
> then return.
> 
> 2. is probably easiest unless we also like to experiment with 3rd party 
> NSLFUNCs. There may be funny problems I didn't think of but can't 
> think of any though.

There are. If I understand it correctly, when calling DOS with ss:920,
the flags and return address are trashed because DOS sets ss:920 on
entry, again. The one that has worked for me is:

- Switch to a local stack
- copy anything in between the original ss:sp and ss:920 to a temp area
- call DOS ints
- restore from temp area
- switch to original stack
- return

Does anybody see any additional problem with this?

Eduardo.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] commit - UNSTABLE

2004-07-26 Thread Arkady V.Belousov
Hi!

25-Июл-2004 16:46 [EMAIL PROTECTED] (Interim FreeDOS Kernel Maintainer)
wrote to [EMAIL PROTECTED]:

IFM> http://www.fdos.org/bootdisks/autogen/source_core.UNSTABLE.zip

 BTW, PKZIP can't extract file, if its name contains more than one dot.
:( Now I again should binary edit this archive to replace
kernel.UNSTABLE.source.zip by something like kernel-UNSTABLE-source.zip...




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] commit - UNSTABLE

2004-07-26 Thread Arkady V.Belousov
Hi!

25-Июл-2004 16:46 [EMAIL PROTECTED] (Interim FreeDOS Kernel Maintainer)
wrote to [EMAIL PROTECTED]:

IFM> [Kernel + FreeCom + Sys]
IFM> .UNSTABLE. is the development branch where work is initially
IFM> committed, the other is the stable [HEAD] branch. source:
IFM> http://www.fdos.org/bootdisks/autogen/source_core.UNSTABLE.zip

 Oh, God... Please, don't include both archives of kernel and FreeCOM
into one archive. Especially, the FreeCOM archive is twoce longer, than
kernel. Especially, kernel and FreeCOM archives are _packed_, not _stored_,
thus, container archive adds nothing in sense of packing. :(

 I mean:

1. place FreeCOM and kernel as separate archives.
2. _if_ you place .zip archive into .zip archive, then, at least, don't pack
   first .zip archive (ie. use storing method). This makes better
   compression, somewhat nearer to .tgz.




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Strange bug in kernel 2035

2004-07-26 Thread Bart Oldeman
On Mon, 26 Jul 2004, Eduardo Casino wrote:

> There are. If I understand it correctly, when calling DOS with ss:920,
> the flags and return address are trashed because DOS sets ss:920 on
> entry, again.

No. The whole point of calling int2f/ax=12xx is that this stack setup is
bypassed.

i.e. *without* any swapping in NLSFUNC you'd have
int21/ah=38 => DOS switches to internal stack =>
NLSFUNC (still uses DOS stack) => int2f/ax=12xx => back in DOS at a lower
place on the same stack.

Now it's just very easy to use too much stack in this setup and that's the
whole problem.

> - Switch to a local stack
> - copy anything in between the original ss:sp and ss:920 to a temp area
> - call DOS ints
> - restore from temp area
> - switch to original stack
> - return
>
> Does anybody see any additional problem with this?

you should not use a local stack when you call int2f/ax=12xx.
As RBIL states: SS = DOS DS (must be using a DOS internal stack)

Bart


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


[Freedos-kernel] Re: NLSFUNC and callbacks into kernal (was Re: [Freedos-kernel] Strange bug in kernel 2035)

2004-07-26 Thread Bart Oldeman
On Mon, 26 Jul 2004, Steffen Kaiser wrote:

> DOS has three internal stacks, how about switching to the Critical Error
> stack and defer any calls when the stack is in use?

You'd automatically overflow into the Critical Error stack anyway. I
wonder about "defer" though -- how do you defer a critical error handler,
when say, you try to find a:COUNTRY.SYS without a floppy in the drive?
At first sight a delayed critical error handler seems more difficult than
switching stacks

Bart


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Strange bug in kernel 2035

2004-07-26 Thread Bart Oldeman
> > This has nothing to do with switching kernel stacks, in fact if FreeDOS
> > would do things this way (instead of calling DosSeek directly) it would
> > use even more stack space.
>
> Excuse me if I'm a bit thick in the head. Do you mean that it makes no
> sense to implement the int 2f122[6-9b] functions in FreeDOS and it is
> better to do what you suggested in your previous post?

No, it makes sense to implement them, but you're understanding of RBIL
apparently was wrong -- it isn't talking about switching stacks but about
pointing to a different stack frame.

The only thing RBIL does here is to point out a fairly obscure
implementation detail of these functions in MSDOS.

None of the int2f/12 functions switch stacks. They all work on the user
stack, and for quite a few this has to be equal to a kernel stack too.

Bart


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] commit - UNSTABLE

2004-07-26 Thread Jim Hall
Jeremy:
The [EMAIL PROTECTED] alias is still pointed at Bart.  Did you want me 
to change it to point to you?

-jh
--
_
This email message has been automatically encrypted using ROT-26.
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Re: NLSFUNC and callbacks into kernal (was Re: [Freedos-kernel] Strange bug in kernel 2035)

2004-07-26 Thread Steffen Kaiser
On Tue, 27 Jul 2004, Bart Oldeman wrote:
On Mon, 26 Jul 2004, Steffen Kaiser wrote:
DOS has three internal stacks, how about switching to the Critical Error
stack and defer any calls when the stack is in use?
You'd automatically overflow into the Critical Error stack anyway. I
So you can set DOS's Critical Error flag and be happy?
wonder about "defer" though -- how do you defer a critical error handler,
when say, you try to find a:COUNTRY.SYS without a floppy in the drive?
At first sight a delayed critical error handler seems more difficult than
switching stacks
OK, "defer" is not the right word, how about "autofail".
Or, re-enter DOS as like in case of a Critical Error.
I never tested (or used) NLSFUNC in conjunction with floppies and I 
certainly never considered this an option.

Bye,
--
Steffen Kaiser
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] commit - UNSTABLE

2004-07-26 Thread Jim Hall
Jim Hall wrote:
Jeremy:
The [EMAIL PROTECTED] alias is still pointed at Bart.  Did you want me 
to change it to point to you?

-jh

Oops.  Maybe I should have sent that just to Jeremy & Bart.  :-)
-jh
--
_
This email message has been automatically encrypted using ROT-26.
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Strange bug in kernel 2035

2004-07-26 Thread Eduardo Casino
El lun, 26-07-2004 a las 14:09, Bart Oldeman escribió:

> No. The whole point of calling int2f/ax=12xx is that this stack setup is
> bypassed.
> 
> i.e. *without* any swapping in NLSFUNC you'd have
> int21/ah=38 => DOS switches to internal stack =>
> NLSFUNC (still uses DOS stack) => int2f/ax=12xx => back in DOS at a lower
> place on the same stack.
> 
> Now it's just very easy to use too much stack in this setup and that's the
> whole problem.
> 
> > - Switch to a local stack
> > - copy anything in between the original ss:sp and ss:920 to a temp area
> > - call DOS ints
> > - restore from temp area
> > - switch to original stack
> > - return
> >
> > Does anybody see any additional problem with this?
> 
> you should not use a local stack when you call int2f/ax=12xx.
> As RBIL states: SS = DOS DS (must be using a DOS internal stack)

I understood all of this the wrong way. I thought that you were saying
to call _int21_, that's the reason for the local stack.

> > Excuse me if I'm a bit thick in the head. Do you mean that it makes
no
> > sense to implement the int 2f122[6-9b] functions in FreeDOS and it is
> > better to do what you suggested in your previous post?
> 
> No, it makes sense to implement them, but you're understanding of RBIL
> apparently was wrong -- it isn't talking about switching stacks but about
> pointing to a different stack frame.

So, now that I know how to solve the stack problem, is my implementation
of int2f/ax122[6-9] correct?
(http://sourceforge.net/mailarchive/message.php?msg_id=8802703)

Eduardo.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel