MicroVAX2000, VAXStation2000: Properly describe 16MB of memory in CFGTST reg

The CFGTST register MTYPE subfield should describe the additional memory
beyond 2MB on the processor board.  Previous logic attempted to describe
the total system memory and the net result didn't fit into the 3 bit field and
thus said no additional memory is present.

The consequence of this new amount of memory is that ALL of it is tested
during the power on self test and thus it takes significantly longer to get to
the >>> prompt.

As reported in #944
This commit is contained in:
Mark Pizzolato 2020-10-21 04:25:00 -07:00
parent 9572108471
commit a10b8969cd

View file

@ -891,7 +891,7 @@ ka_mser = 0;
ka_mear = 0;
ka_cfgtst = (CFGT_TYP | CFGT_CUR);
if (MEMSIZE > (1u << 21)) /* more than 2MB? */
ka_cfgtst |= ((MEMSIZE >> 21) & CFGT_MEM);
ka_cfgtst |= (((MEMSIZE - (1u << 21)) >> 21) & CFGT_MEM);
if ((vc_dev.flags & DEV_DIS) == 0) /* mono video enabled? */
ka_cfgtst &= ~CFGT_TYP;
if ((va_dev.flags & DEV_DIS) == 0) { /* video option present? */