Using Multiple CPU Cores in DOS? (Miscellaneous)
> BUT early versions of Microsoft LINK /EXEPACK and early versions of
> PKLITE (pre 1991) had a bug, and relied on A20 being disabled.
>
> for this reason MSDOS invented first LOADFIX, them started programs with
> A20 disabled, and reenabled A20 on the first int 21, and left it enabled.
Interesting. I never knew that's what LOADFIX was for -- it never made any sense to me before now why a program would have a problem being loaded in the first 64k.
> anyway, checking for A20 status is easy, like
>
> status = memcmp(0000:80, FFFF:90, 16)
Yes, the HIMEMX source has an ASM implementation of the same basic test.
> only if status is disabled, you should enable, then copy, then disable A20
> status will be enabled most of the time
I don't think I want that to be the default behavior, though, since it makes things INCREDIBLY slow -- too slow to depend on in an IRQ handler if there's a way to avoid it. I think my default is going to be to to enable A20 and leave it on, but have a user-selectable option to do it "the slow way". Like you, I don't see a lot of point in making that the default behavior given the limited number of programs affected and the availability of LOADFIX.
***
I still think the possibility of using a second core to make the mode switches faster may still be worth investigating, though. Even when you don't have to mess with the A20 line, the mode switches are still noticeably slow when you need to do a lot of them in the background.
Complete thread:
- Using Multiple CPU Cores in DOS? - bretjohn, 12.09.2011, 02:15 (Miscellaneous)
- Using Multiple CPU Cores in DOS? - RayeR, 12.09.2011, 15:26
- Using Multiple CPU Cores in DOS? - Laaca, 12.09.2011, 17:26
- Using Multiple CPU Cores in DOS? - RayeR, 12.09.2011, 20:13
- Using Multiple CPU Cores in DOS? - bretjohn, 12.09.2011, 22:36
- Using Multiple CPU Cores in DOS? - RayeR, 13.09.2011, 00:33
- Using Multiple CPU Cores in DOS? - bretjohn, 13.09.2011, 04:25
- Using Multiple CPU Cores in DOS? - RayeR, 13.09.2011, 19:32
- Using Multiple CPU Cores in DOS? - Laaca, 13.09.2011, 21:12
- Using Multiple CPU Cores in DOS? - bretjohn, 13.09.2011, 23:02
- Using Multiple CPU Cores in DOS? - RayeR, 14.09.2011, 03:30
- Using Multiple CPU Cores in DOS? - bretjohn, 14.09.2011, 18:24
- Using Multiple CPU Cores in DOS? - RayeR, 15.09.2011, 01:15
- Using Multiple CPU Cores in DOS? - bretjohn, 15.09.2011, 19:11
- Using Multiple CPU Cores in DOS? - RayeR, 15.09.2011, 01:15
- Using Multiple CPU Cores in DOS? - bretjohn, 14.09.2011, 18:24
- Using Multiple CPU Cores in DOS? - RayeR, 14.09.2011, 03:30
- Using Multiple CPU Cores in DOS? - bretjohn, 13.09.2011, 23:02
- Using Multiple CPU Cores in DOS? - Laaca, 13.09.2011, 21:12
- Using Multiple CPU Cores in DOS? - RayeR, 13.09.2011, 19:32
- Using Multiple CPU Cores in DOS? - bretjohn, 13.09.2011, 04:25
- Using Multiple CPU Cores in DOS? - Rugxulo, 13.09.2011, 02:27
- Using Multiple CPU Cores in DOS? - RayeR, 14.09.2011, 03:52
- Using Multiple CPU Cores in DOS? - tom, 14.09.2011, 13:24
- Using Multiple CPU Cores in DOS? - bretjohn, 14.09.2011, 19:03
- Using Multiple CPU Cores in DOS? - tom, 15.09.2011, 14:43
- Using Multiple CPU Cores in DOS? - bretjohn, 15.09.2011, 18:24
- Using Multiple CPU Cores in DOS? - tom, 15.09.2011, 18:40
- Using Multiple CPU Cores in DOS? - bretjohn, 16.09.2011, 01:33
- Using Multiple CPU Cores in DOS? - RayeR, 16.09.2011, 02:26
- Using Multiple CPU Cores in DOS? - bretjohn, 16.09.2011, 18:06
- Using Multiple CPU Cores in DOS? - RayeR, 16.09.2011, 18:22
- Using Multiple CPU Cores in DOS? - bretjohn, 17.09.2011, 02:03
- Using Multiple CPU Cores in DOS? - Laaca, 17.09.2011, 07:47
- Using Multiple CPU Cores in DOS? - tom, 17.09.2011, 14:09
- Using Multiple CPU Cores in DOS? - bretjohn, 18.09.2011, 04:27
- Using Multiple CPU Cores in DOS? - tom, 19.09.2011, 15:03
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 19:50
- Using Multiple CPU Cores in DOS? - tom, 19.09.2011, 22:00
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 23:19
- Using Multiple CPU Cores in DOS? - tom, 20.09.2011, 12:02
- Using Multiple CPU Cores in DOS? - DOS386, 20.09.2011, 12:24
- Using Multiple CPU Cores in DOS? - bretjohn, 20.09.2011, 18:23
- Using Multiple CPU Cores in DOS? - tom, 20.09.2011, 20:17
- Using Multiple CPU Cores in DOS? - tom, 20.09.2011, 12:02
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 23:19
- Using Multiple CPU Cores in DOS? - tom, 19.09.2011, 22:00
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 19:50
- Using Multiple CPU Cores in DOS? - tom, 19.09.2011, 15:03
- Using Multiple CPU Cores in DOS? - RayeR, 19.09.2011, 15:01
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 20:25
- Using Multiple CPU Cores in DOS? - RayeR, 20.09.2011, 03:14
- Using Multiple CPU Cores in DOS? - bretjohn, 19.09.2011, 20:25
- Using Multiple CPU Cores in DOS? - bretjohn, 18.09.2011, 04:27
- Using Multiple CPU Cores in DOS? - bretjohn, 17.09.2011, 02:03
- Using Multiple CPU Cores in DOS? - RayeR, 16.09.2011, 18:22
- Using Multiple CPU Cores in DOS? - tom, 15.09.2011, 18:40
- Using Multiple CPU Cores in DOS? - bretjohn, 15.09.2011, 18:24
- Using Multiple CPU Cores in DOS? - tom, 15.09.2011, 14:43
- Using Multiple CPU Cores in DOS? - bretjohn, 14.09.2011, 19:03
- Using Multiple CPU Cores in DOS? - RayeR, 13.09.2011, 00:33
- Using Multiple CPU Cores in DOS? - Laaca, 12.09.2011, 17:26
- Using Multiple CPU Cores in DOS? - DOS386, 13.09.2011, 07:11
- Using Multiple CPU Cores in DOS? - bretjohn, 13.09.2011, 19:14
- Using Multiple CPU Cores in DOS? - FFK, 18.09.2011, 04:44
- Using Multiple CPU Cores in DOS? - RayeR, 19.09.2011, 14:50
- Using Multiple CPU Cores in DOS? - FFK, 21.09.2011, 01:30
- Using Multiple CPU Cores in DOS? - RayeR, 19.09.2011, 14:50
- USBDOS | A20-BUG | no need for 1'000'000'000 cores - DOS386, 20.09.2011, 09:10
- USBDOS | A20-BUG | no need for 1'000'000'000 cores - bretjohn, 20.09.2011, 19:34
- Using Multiple CPU Cores in DOS? - RayeR, 23.09.2011, 02:27
- Using Multiple CPU Cores in DOS? - RayeR, 12.09.2011, 15:26