Subject: unsigned long changes 'part 1 of 2' (#142) Index: sys/conf/Make.*, sys/GENERIC/Makefile 2.11BSD Description: Unsigned longs are almost here. An earlier posting (#134) added the necessary routines to the C runtime with a promise that instructions for updating the kernel and compiler would follow. This patch contains the last steps which must be performed before the compiler and include files are changed (that is part number 2 and will follow soon). Repeat-By: Observation. Fix: Unshar the following file in /tmp. Apply the patches: patch -p0 < /tmp/8 patch -p0 < /tmp/9 patch -p0 < /tmp/10 patch -p0 < /tmp/11 patch -p0 < /tmp/16 Then for *each* kernel you have configured on your system (/sys/GENERIC is one, you probably have others such as /sys/KNASE, /sys/FOO, and so on): cp /sys/conf/Make.pdp /sys/FOO/Make.pdp ... cp /sys/conf/Make.pdp /sys/GENERIC/Make.pdp Next you need to update the main 'Makefile' in each configured kernel. See the file '16' below - that patch updates the GENERIC 'Makefile', you need to do something similar to the Makefile in /sys/FOO. You very likely can use the same patch (cd /sys/FOO; patch < /tmp/16), all that you need to do is add the line: libc_uldiv.o libc_ulsh.o \ after the line with 'libc_remque.o' in it. Then (we're almost done) you need to copy a couple of routines (or make symlinks if you prefer) to the /sys/pdp directory. At present the kernel and networking only need the 'unsigned long divide' and 'unsigned long shift' routines: cp /usr/src/lib/libc/pdp/crt/uldiv.s /sys/pdp/libc_uldiv.s cp /usr/src/lib/libc/pdp/crt/ulsh.s /sys/pdp/libc_ulsh.s No need to recompile anything at this point (but nothing will break if you need to rebuild a kernel). That comes later ;-) ================================cut here============================= #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # 8 # 9 # 10 # 11 # 16 # This archive created: Fri Jul 2 23:17:47 1993 export PATH; PATH=/bin:/usr/bin:$PATH if test -f '8' then echo shar: "will not over-write existing file '8'" else sed 's/^X//' << \SHAR_EOF > '8' X*** /usr/src/sys/conf/Make.pdp.old Sat Jul 11 23:07:00 1992 X--- /usr/src/sys/conf/Make.pdp Sun Jun 6 21:40:45 1993 X*************** X*** 28,33 **** X--- 28,34 ---- X SFILES= ${M}/libc_bcmp.s ${M}/libc_bcopy.s ${M}/libc_bzero.s \ X ${M}/libc_ffs.s ${M}/libc_insque.s ${M}/libc_ldiv.s \ X ${M}/libc_lmul.s ${M}/libc_lrem.s ${M}/libc_remque.s \ X+ ${M}/libc_uldiv.s ${M}/libc_ulsh.s \ X ${M}/libc_strlen.s ${M}/libc_udiv.s ${M}/mch_backup.s \ X ${M}/mch_click.s ${M}/mch_copy.s ${M}/mch_csv.s ${M}/mch_dump.s \ X ${M}/mch_dzpdma.s ${M}/mch_fpsim.s ${M}/mch_KScall.s \ X*************** X*** 35,40 **** X--- 36,42 ---- X ${M}/mch_vars.s ${M}/mch_xxx.s ${M}/scb.s ${M}/toy.s X SOBJS= libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o libc_insque.o \ X libc_ldiv.o libc_lmul.o libc_lrem.o libc_remque.o libc_strlen.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_udiv.o mch_backup.o mch_click.o mch_copy.o mch_csv.o \ X mch_dump.o mch_dzpdma.o mch_fpsim.o mch_KScall.o mch_profile.o \ X mch_start.o mch_trap.o mch_vars.o mch_xxx.o scb.o toy.o SHAR_EOF fi if test -f '9' then echo shar: "will not over-write existing file '9'" else sed 's/^X//' << \SHAR_EOF > '9' X*** /usr/src/sys/conf/Make.nsunix.old Fri Mar 12 19:03:53 1993 X--- /usr/src/sys/conf/Make.nsunix Sun Jun 6 21:47:07 1993 X*************** X*** 49,54 **** X--- 49,55 ---- X X CONF= scb.o libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o \ X libc_insque.o libc_ldiv.o libc_lmul.o libc_lrem.o libc_remque.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_strlen.o mch_backup.o mch_click.o mch_copy.o mch_csv.o \ X mch_dump.o mch_dzpdma.o mch_KScall.o mch_profile.o \ X mch_start.o mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o X*************** X*** 55,60 **** X--- 56,62 ---- X X NCONF= libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o libc_htonl.o \ X libc_htons.o libc_insque.o libc_ldiv.o libc_lmul.o libc_lrem.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_remque.o libc_strlen.o libc_udiv.o net_copy.o net_csv.o \ X net_mbuf.o net_scb.o net_SKcall.o net_trap.o net_xxx.o X SHAR_EOF fi if test -f '10' then echo shar: "will not over-write existing file '10'" else sed 's/^X//' << \SHAR_EOF > '10' X*** /usr/src/sys/conf/Make.unix.old Fri Mar 12 19:04:35 1993 X--- /usr/src/sys/conf/Make.unix Sun Jun 6 21:47:50 1993 X*************** X*** 41,46 **** X--- 41,47 ---- X X CONF= scb.o libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o \ X libc_insque.o libc_ldiv.o libc_lmul.o libc_lrem.o libc_remque.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_strlen.o mch_backup.o mch_click.o mch_copy.o mch_csv.o \ X mch_dump.o mch_dzpdma.o mch_fpsim.o mch_profile.o mch_start.o \ X mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o SHAR_EOF fi if test -f '11' then echo shar: "will not over-write existing file '11'" else sed 's/^X//' << \SHAR_EOF > '11' X*** /usr/src/sys/conf/Make.sunix.old Fri Mar 12 19:03:39 1993 X--- /usr/src/sys/conf/Make.sunix Sun Jun 6 21:47:32 1993 X*************** X*** 41,46 **** X--- 41,47 ---- X X CONF= scb.o libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o \ X libc_insque.o libc_ldiv.o libc_lmul.o libc_lrem.o libc_remque.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_strlen.o mch_backup.o mch_click.o mch_copy.o mch_csv.o \ X mch_dump.o mch_dzpdma.o mch_profile.o mch_start.o \ X mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o SHAR_EOF fi if test -f '16' then echo shar: "will not over-write existing file '16'" else sed 's/^X//' << \SHAR_EOF > '16' X*** /usr/src/sys/GENERIC/Makefile.old Sun Jun 6 21:51:24 1993 X--- /usr/src/sys/GENERIC/Makefile Sun Jun 6 21:48:32 1993 X*************** X*** 42,47 **** X--- 42,48 ---- X X CONF= scb.o libc_bcmp.o libc_bcopy.o libc_bzero.o libc_ffs.o \ X libc_insque.o libc_ldiv.o libc_lmul.o libc_lrem.o libc_remque.o \ X+ libc_uldiv.o libc_ulsh.o \ X libc_strlen.o mch_backup.o mch_click.o mch_copy.o mch_csv.o \ X mch_dump.o mch_dzpdma.o mch_profile.o mch_start.o \ X mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o SHAR_EOF fi exit 0 # End of shell archive