USBDOS | A20-BUG | no need for 1'000'000'000 cores (Miscellaneous)
> I did some experimenting today on one of my computers, and it
> looks like toggling the A20 line is the sole culprit.
Voila. Problem gone. No need for multi-core "technology"
> statements that vary from (paraphrasing), "There are a lot of programs that depend
> on A20 being disabled so you shouldn't EVER leave it enabled,"
No right to exist for those.
> "There are only a few poorly written 8086-era programs that depend on A20 being
> disabled, and nobody uses them any more."
Right.
> but just wondered what others feel/know about the real situation
See above.
> I guess that the best choice is a standarised DPMI 1.1 Multi-cores, Multi-thread extension
Right. Considering that not a single useful DOS standard has been established during last 20 years. Whenever the need for a standard is mentioned in some forum, people start digging inside >= 20 years old problems private to Macro$oft and soon also making exciting "discoveries"
> > > I think that A20 is fiddled only when acessing HMA so it's useless for
> > > reaching MMIO at higher address.
> wrong. A20 must be fiddled with for every access above 1M.
Are you sure ??? Are all lines >= A20 disabled or only A20 ??? Because if only A20 is dead, then you can perfectly use PM and access MMIO ... as long as you access only addresses having the a20 bit ZERO. This should be true even for a VESA LFB 640x480x24bpp, as the VESA LFB is always aligned to an integer multiple of 64 MiB and for this mode smaller than 1 MiB. This should be also possible for OHCI/EHCI, assuming the MMIO size is below 1 MiB and also sufficiently aligned (2 MiB at least). Untested.
> BUT early versions of Microsoft LINK /EXEPACK and early versions of PKLITE
> (pre 1991) had a bug, and relied on A20 being disabled.
> and my HIMEM's behaviour was 'enable A20 and leave it in this state'.
> I still think the possibility of using a second core to make the mode switches faster
I don't think so. Huge cost for probably no benefit. And I ASS'ume the A20-BUG affects both cores the same way ?
> changing system state at some randowm interrupt time might be one of the worst
> ideas in operating system design ever - even worse then 'my driver needs a second core'
Really ??? AFAIK mode switches inside IRQ are a "standard" DPMI aproach. NOT amused, either.
> now randomly enabling A20 at some randowm interrupt time removes the predictability
Leave A20-line ON and A20-BUG OFF, point.
> If I remember well A20 was controlled via KBC chip through some IO port on old PC
most PC ... and old KBC (+PIT) ports are HELL SLOW (cca 1000 cycles per access) ... not to talk about "wait until KBC ready" loops
Solution ideas:
- Georg's driver has the /R option to completely avoid PCI MMIO and INT $15 / $87.
- Try to ignore A20 and access addresses with a20 line ZERO (sufficient?).
- Execute SMSW, if V86, then INT $15 / $87, if RM, then INC CR0 - completely avoid BIOS.
- Ensure A20-line is always ON while your driver is active (how?).
---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***
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