From 4561acc0b1e264f09d3382b837efb03c3d707dde Mon Sep 17 00:00:00 2001 From: Jim Wilcoxson Date: Thu, 16 Apr 2020 19:47:54 +0000 Subject: [PATCH] Revised & expanded comments about phyiscal memory Removed comment about memory needing to be a power of 2. Testing -mem 9 worked fine with rev 20: OK, stat sys System is currently running PRIMOS rev. 20.2.8 Copyright (c) Prime Computer, Inc. 1985 9216K bytes memory in use --- em.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/em.c b/em.c index be6d001..c40b9e4 100644 --- a/em.c +++ b/em.c @@ -564,19 +564,23 @@ static jmp_buf jmpbuf; /* for longjumps to the fetch loop */ static jmp_buf bootjmp; /* for longjumps to the fetch loop */ /* The standard Prime physical memory limit on early machines is 8MB. - Later machines have higher memory capacities, up to 1024MB, using - 32-bit page tables. + Later machines have higher memory capacities, up to 1024MB + (unsupported in Primos though), using 32-bit page tables. - NOTE: + NOTE: + - rev 19 custom Primos expands memory limit from 16MB to 32MB + - rev 19 custom Primos expands 9950 limit from 16MB to 32MB + - rev 19 custom Primos *requires* 32MB: Primos memory scan removed - rev 20 is limited to a max of 32MB - - rev 23.4 is limited to a max of 512MB + - rev 23.4 is limited to a max of 512MB (use -cpuid 5340) + - rev 23.4 RMS_PROCESS scans & adds memory after Primos is booted - "memlimit" is set with the -mem argument, taking an argument which is - the desired memory limit in MB. Setting a memory limit is useful to - speed up system boots and diagnostics during emulator testing. + Prime physical memory size (MB) is set with the -mem argument. + Setting a small memory limit speeds up system boots and diagnostics + during emulator testing. */ -#define DEFMB 32 /* must be a power of 2 */ +#define DEFMB 32 #define MEM physmem static unsigned short *physmem = NULL; /* system's physical memory */