Um? 18-bit limitations do not cause the system to crash when memory goes
above 2MB...
Johnny
On 5/8/26 16:52, Clem Cole wrote:
> Yep, that's a known bug with the original Research Distribution tape.
> The crash occurs because the kernel's memory management initialization
> and certain device drivers assumed an 18-bit limit. To fix this, you
> must modify the kernel configuration and the memory probing routine in
> machdep.c. If you grab the V7M tapes, which is the DEC additions and
> corrections to stock V7, it will work immediately [https://
>
bitsavers.org/bits/DEC/pdp11/v7m/v7m_2.1_dist.tap <https://
>
bitsavers.org/bits/DEC/pdp11/v7m/v7m_2.1_dist.tap>]. V7M is pre-
> configured and includes the DEC additions and corrections to stockV7,
> designed for both the original Unibus/Massbus PDP-11 models and 22-bit
> Q-bus machines. One very nice addition is the support for overlays [this
> was later picked up in 2.8BSD and follow-on versions].
>
> If you want to try it yourself (which is a wonderful way to start to
> learn about the UNIX kernel, and how many of us started back in the
> day), the important manual steps for the fix are:
>
> * Modify machdep.c: You must update the memall and memfree routines to
> handle the 22-bit Page Address Registers (PARs) correctly for memory
> above the 2MB (18-bit) boundary.
> * Unibus Map Support: On an 11/70, Unibus devices (such as the RK05)
> can access only the first 256KB of memory unless the Unibus Map is
> properly initialized and managed by the kernel. Original V7 lacked
> full Unibus Map management, causing crashes when drivers attempt to
> perform DMA to memory addresses above 248KB.
> * Massbus Driver Patches: If using Massbus drives (RP04/05/06), the
> driver must be updated to use 22-bit addressing rather than 18-bit
> addressing.
>
> Peter Collinson (another old UNIX jockey like me) has a github with his
> changes to stock V7 and some extra's that fix other issues and make it
> easier to type to with a glass CRT, and a copuple of othjer toolsas well
> as a couplesimh *.ini files that he uses to create everything: https://
>
github.com/pcollinson/unixv7-extras <
https://github.com/pcollinson/
> unixv7-extras>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pidp-11+u...@googlegroups.com
> <mailto:
pidp-11+u...@googlegroups.com>.
> CAC20D2MchZUVBP04ta0kXTTQVLvXj-Z%2B4abxG6fFU%2Bdp13n3aQ%
40mail.gmail.com
> <
https://groups.google.com/d/msgid/pidp-11/
> CAC20D2MchZUVBP04ta0kXTTQVLvXj-
> Z%2B4abxG6fFU%2Bdp13n3aQ%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.