Re: [Freedos-devel] Making a task switcher “from scratch”. Some problems..
Bonsoir Sebastien! > Since more days, I develop "from scratch" my "task switcher" on FreeDos in > asm/c++ > for preemption. Have you tried improving the existing TriDOS instead? > * I succeeded to create stack memory in array, for each > tasks added. > * I was not able to "switch" with two stack in asm inline Try to switch only at "smart" moments. For example let programs switch when they try to call int 21, by hooking int 21, but do NOT switch while int 21 is already busy. Check the InDOS flag, as well as related data. The problem is similar to what you get with some TSR / hotkey systems, so a howto for that will also help you to understand task switching. When switching between tasks, you may also want to swap the contents of the SDA (DOS swappable data area) and the DOS stack. Basically it is tricky enough to swap tasks to give MS a good excuse why Windows even refused to do it on non-Microsoft DOS in the beginning... :-p Note that using DJGPP makes things even a lot more complicated, because DJGPP programs always are DPMI tasks in protected mode, usually with CWSDPMI as their protected mode host... So even for simply calling DOS or BIOS from a DJGPP program, you have to be careful to not fall into the gap between protected mode and DOS and DJGPP only does it automatically for you in easy cases. For others, you have to explicitly tell DJGPP how to bridge that gap. > This is my complete code with Batch file for compile with GCC/G++ (DJGPP for > DOS) > http://cpcdos.e-monsite.com/medias/files/task-switch-test.zip Cheers, Eric -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel
[Freedos-devel] Making a task switcher “from scratch”. Some problems..
Hi all :) Since more days, I develop "from scratch" my "task switcher" on FreeDos in asm/c++ for preemption. * I succeeded to create stack memory in array, for each tasks added. * I was not able to "switch" with two stack in asm inline (in Task_Switch() function) .. CRASH If someone can take his time resolve my problem ? What i forgot ? :-( This is my complet code with Batch file for compile with GCC/G++ (DJGPP for DOS) http://cpcdos.e-monsite.com/medias/files/task-switch-test.zip It would be really nice of you.. Best regards, Sébastien FAVIER ps:Excuse me for my bad english level, i'm French student :/ and Sorry to give everything abruptly my code, I prefer to have the same vision of code from your home. -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel
Re: [Freedos-devel] Getting ready for FreeDOS 1.2
I can set aside an hour today dedicated to "Breaking" FreeDOS.If I find any bugs,I will report them back. On Wed, Oct 5, 2016 at 11:09 AM, Jim Hallwrote: > Have you been testing the pre-releases of the upcoming FreeDOS 1.2 > release? Jerome and others have been doing a great job putting this > together, and I think we are almost "there" for a final FreeDOS 1.2 > release. > > We have only a few minor changes based on the latest 1.2-pre23. So we > are planning the next one to be the release candidate! We are looking > at the following release schedule: > > > 10/31 - FreeDOS 1.2 RC1 > > 11/24 - FreeDOS 1.2 RC2 > > 12/25 - FreeDOS 1.2 official release > > > I think Jerome described the holiday-based release schedule best with this: > > > 1.2-RC1 on 10/31/16, Scary release. > > 1.2-RC2 on 11/24/16, Thankful if not needed. > > 1.2-Final on 12/25/16, Gift to all FreeDOS users. > > > I'd really appreciate everyone testing the heck out of this. We want > to find (and fix!) any issues that still remain. > > As always, please continue to test the latest FreeDOS 1.2-pre23 and > report any issues. We'll work those fixes into the release candidate. > You can download the pre-release version here: > > http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/ > distributions/1.2/previews/ > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel