Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!hplabs!sri-unix!walsh@BBN-LABS-B.ARPA From: walsh@BBN-LABS-B.ARPA Newsgroups: net.unix-wizards Subject: UPAGES and 4.2BSD Message-ID: <1252@sri-arpa.UUCP> Date: Mon, 25-Jun-84 08:16:32 EDT Article-I.D.: sri-arpa.1252 Posted: Mon Jun 25 08:16:32 1984 Date-Received: Sat, 30-Jun-84 01:26:29 EDT Lines: 53 From: Bob Walsh If you need to increase the size of the kernel stack, you can increase UPAGES in vax/param.h from 8 to 10. If you do so, you'll run into the following problems: 1. a make doesn't recompile anything 2. after touching all the appropriate files, the booted system crashes To fix the problem, you need to edit vax/locore.s. (If you edit mysys/locore.c, your edited locore.c is thrown away by the make rules.) In locore.s, the subroutine Fastreclaim should be more properly coded as: *** locore.s Sun Jun 24 18:52:02 1984 --- locore.old Tue Jun 19 15:26:23 1984 *************** *** 1161,1167 movl $1,r2 # type = CTEXT; jbr 3f 2: ! subl3 P_SSIZE(r5),$(0x400000-UPAGES),r0 cmpl r3,r0 jgequ 2f # } else if (isadsv(p, v)) { ashl $2,r3,r4 --- 1157,1163 ----- movl $1,r2 # type = CTEXT; jbr 3f 2: ! subl3 P_SSIZE(r5),$0x3ffff8,r0 cmpl r3,r0 jgequ 2f # } else if (isadsv(p, v)) { ashl $2,r3,r4 *************** *** 1171,1177 2: cvtwl P_SZPT(r5),r4 # } else (isassv(p, v)) { ashl $7,r4,r4 ! subl2 $0x400000,r4 addl2 r3,r4 ashl $2,r4,r4 addl2 P_P0BR(r5),r4 # sptopte(p, vtosp(p, v)); --- 1167,1173 ----- 2: cvtwl P_SZPT(r5),r4 # } else (isassv(p, v)) { ashl $7,r4,r4 ! subl2 $(0x3ffff8+UPAGES),r4 addl2 r3,r4 ashl $2,r4,r4 addl2 P_P0BR(r5),r4 # sptopte(p, vtosp(p, v)); bob walsh