Article View: comp.bugs.2bsd
Article #161V1.5 (Kernel memory printf's are out of order.)
From: bostic
Date: Tue, 29 Sep 1987 22:38
Date: Tue, 29 Sep 1987 22:38
37 lines
1638 bytes
1638 bytes
Subject: Kernel memory printf's are out of order.
Index: sys/pdp/machdep2.c 2.10BSD
Description:
The user and available memory printf's when the kernel starts
up are out of order.
Repeat-By:
Examine the code.
Fix:
Apply the following patch to sys/pdp/machdep2.c.
*** machdep2.c.old Tue Sep 29 15:29:34 1987
--- machdep2.c Tue Sep 29 15:29:51 1987
***************
*** 162,172 ****
maxmem -= ramsize;
#endif
- if (MAXMEM < maxmem)
- maxmem = MAXMEM;
-
printf("phys mem = %D\n", ctob((long)physmem));
printf("avail mem = %D\n", ctob((long)maxmem));
printf("user mem = %D\n", ctob((long)maxmem));
#if NRAM > 0
printf("ram disk = %D\n", ctob((long)ramsize));
--- 162,171 ----
maxmem -= ramsize;
#endif
printf("phys mem = %D\n", ctob((long)physmem));
printf("avail mem = %D\n", ctob((long)maxmem));
+ if (MAXMEM < maxmem)
+ maxmem = MAXMEM;
printf("user mem = %D\n", ctob((long)maxmem));
#if NRAM > 0
printf("ram disk = %D\n", ctob((long)ramsize));
Technical Details
Message-ID:
<8709292238.AA16765@okeeffe.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!nysernic!itsgw!batcomputer!cornell!uw-beaver!mit-eddie!ll-xn!ames!sdcsvax!ucbvax!OKEEFFE.BERKELEY.EDU!bosticShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!nysernic!itsgw!batcomputer!cornell!uw-beaver!mit-eddie!ll-xn!ames!sdcsvax!ucbvax!OKEEFFE.BERKELEY.EDU!bostic From: bostic@OKEEFFE.BERKELEY.EDU.UUCP Newsgroups: comp.bugs.2bsd Subject: V1.5 (Kernel memory printf's are out of order.) Message-ID: <8709292238.AA16765@okeeffe.Berkeley.EDU> Date: Tue, 29-Sep-87 18:38:52 EDT Article-I.D.: okeeffe.8709292238.AA16765 Posted: Tue Sep 29 18:38:52 1987 Date-Received: Fri, 2-Oct-87 01:04:18 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 37