droms@PURDUE.ARPA (Ralph E Droms) (05/25/85)
I'm trying to make some changes to the user structure in 4.2BSD and have run into a problem with a hard-wired constant in sys/machine/param.h. Can someone tell me how the constant UPAGES is determined? Is it: number of pages in struct user + SSIZE ?? If so, is there a reason it cannot be computed by the compiler? And, there's a related problem with genassym.c/assym.s. Genassym.c is compiled with KERNEL not defined. This forces sys/h/param.h to include <machine/param.h>, rather than ../machine/param.h. So, UPAGES must be changed in both .h files for the kernel to be remade correctly. - Ralph -- Ralph Droms ihnp4!purdue!droms 445 MATH droms@purdue.arpa Dept. of Computer Science droms@purdue.csnet Purdue University West Lafayette, IN 47906 ----------
thomas@utah-gr.UUCP (Spencer W. Thomas) (05/26/85)
In article <11029@brl-tgr.ARPA> droms@PURDUE.ARPA (Ralph E Droms) writes: >... compiled with KERNEL not defined. This forces sys/h/param.h to include ><machine/param.h>, rather than ../machine/param.h. So, UPAGES must be >changed in both .h files for the kernel to be remade correctly. If you had /usr/include/machine set up as a symbolic link to /sys/machine, this would not be a problem. -- =Spencer ({ihnp4,decvax}!utah-cs!thomas, thomas@utah-cs.ARPA) "There are only the pursued, the pursuing, the busy, and the tired." - F. Scott Fitzgerald
ed@mtxinu.UUCP (Ed Gould) (06/18/85)
>In article <11029@brl-tgr.ARPA> droms@PURDUE.ARPA (Ralph E Droms) writes: >>... compiled with KERNEL not defined. This forces sys/h/param.h to include >><machine/param.h>, rather than ../machine/param.h. So, UPAGES must be >>changed in both .h files for the kernel to be remade correctly. In article <1462@utah-gr.UUCP> thomas@utah-gr.UUCP (Spencer W. Thomas) writes: > >If you had /usr/include/machine set up as a symbolic link to >/sys/machine, this would not be a problem. True, but it doesn't help if you're compiling a test kernel with its own headers. Adding a declaration of the appropriate variable (uba_hd if I remember correctly) solves the "undefined" problem: #define KERNEL ... struct uba_hd uba_hd[1]; -- Ed Gould mt Xinu, 2910 Seventh St., Berkeley, CA 94710 USA {ucbvax,decvax}!mtxinu!ed +1 415 644 0146