jkh [Wed, 26 Oct 1994 13:46:34 +0000 (13:46 +0000)]
Remove the code for asking for a filesystem floppy. We don't need
it anymore, and neither David nor I can think of a reasonable
mechanism to stick in its place.
jkh [Wed, 26 Oct 1994 11:14:21 +0000 (11:14 +0000)]
I'm going to nuke strtol() for now. Now I need strncmp() and rather
that add it too, and end up fighting an unwanted battle right now,
I'm just going to back away from both and start including my own private
copies of everything. I'm not going to use _anything_ from libkern
until we decide its fate.
paul [Wed, 26 Oct 1994 04:09:19 +0000 (04:09 +0000)]
Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
phk [Wed, 26 Oct 1994 00:16:20 +0000 (00:16 +0000)]
Fixed a couple of wrong printfs (too few arguments supplied). Also zapped
a couple of unused vars at the same time. Added a #include <sys/proc.h>
to isa.c while here anyway.
se [Tue, 25 Oct 1994 23:06:16 +0000 (23:06 +0000)]
BEWARE: Interface change of register_intr() !
Changed the fifth parameter to register_intr() from u_int mask into
u_int *maskptr in preparation for new features (shared interrupts and
removable devices, eg. for PCMCIA).
se [Tue, 25 Oct 1994 22:35:12 +0000 (22:35 +0000)]
BEWARE: Interface change of register_intr() !
Changed the fifth parameter to register_intr() from u_int mask into
u_int *maskptr in preparation for new features (shared interrupts and
removable devices, eg. for PCMCIA).
bde [Tue, 25 Oct 1994 19:34:57 +0000 (19:34 +0000)]
Never strip the kernel.
Recommend -Wimplicit in CWARNFLAGS next. There are still a few hundred
potential arg mismatches because no function declaration is in scope.
Don't duplicate option `-I.'.
Remove null editing of the assembler source for all profiled objects.
The required magic has been done since prehistoric times by an
asm("mcount") declaration.
Simplify the clean rule.
Don't try to be clever about timestamps involving genassym. genassym's
timestamp usually got ahead of assym.s's timestamp, so `make' almost
always had to run genassym and compare *assym.s to decide that nothing
needed to be done. The cost is reassembling a few files whenever
genassym is rebuilt. Assembling is almost as fast as comparing.
Always go through genassym.o to build genassym. This would have avoided
numerous bugs involving mkdep -p. Now it just stops genassym from
depending on the name of the temporary object file.
Use ${CFLAGS} for building genassym. Mainly ${CWARNFLAGS} were missing.
bde [Tue, 25 Oct 1994 18:09:44 +0000 (18:09 +0000)]
Use += instead of ?= for setting LDDESTDIR. Some Makefiles, such as
cc/Makefile.inc use (abuse?) LDDESTDIR for their internal libraries
so "?=" hides non-default external libraries. Adding multiple paths
to LDDESTDIR works except it makes it even harder than usual to
decide which libraries will actually be linked against.
bde [Tue, 25 Oct 1994 17:46:53 +0000 (17:46 +0000)]
Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active. Do nothing instead. This
allows clearing all the active flags by specifying an invalid partition.
jkh [Tue, 25 Oct 1994 14:57:57 +0000 (14:57 +0000)]
Add strtol() to libkern in support of some other work I'm doing.
I just know I'm going to get flamed for adding for the miserable
abortion that is libkern, but what am I supposed to do? At least I
didn't drag in the ctype stuff! :-)
bde [Tue, 25 Oct 1994 14:11:35 +0000 (14:11 +0000)]
Improve error detection and handling:
Reduce _JBLEN for the i386 to what is actually used.
Encapsulate jmp_buf and sigjmp_buf in structs.
Enlarge jmp_buf to the same size as sigjmp_buf.
Declare *longjmp as non-returning.
Remove stale comments about sig*jmp not being implemented.
bde [Tue, 25 Oct 1994 14:04:32 +0000 (14:04 +0000)]
Nuke sigsetjmp.c. sigsetjmp() can't be implemented as a C function
that calls setjmp(), since returning from the function usually
clobbers the saved environment.
dg [Tue, 25 Oct 1994 08:34:50 +0000 (08:34 +0000)]
Restricted maximum bufpages to 1500; this is required for machines >64MB
of memory to work without running out of kernel VM (and increasing it to
even more than it is now (96MB) is out of the question. Changed bufpages
calculation to allocation a little less bufer cache (16% of mem-2MB instead
of 20%); this is simply a better figure for most systems.
dg [Tue, 25 Oct 1994 07:25:56 +0000 (07:25 +0000)]
Moved initialization of tmpstk so that it immediately follows the kernel
text. Fixed rounding bug that caused the last page of kernel text to be
read/write instead of read-only. This is important now that tmpstk can
crash into it. Removed +4 bias of tmpstk because it screws up ddb's
ability to traceback correctly.
phk [Mon, 24 Oct 1994 20:09:39 +0000 (20:09 +0000)]
These patches fix some lesser problems:
1) malloc.h doesn't exits in 2.0.
2) Makefile.inc wasn't picked up so one of the build steps (install?)
failed.
3) LIBMD wasn't depended on.
4) "ctm foo" dumped core because "foo" doesn't have a '.' in it.
Bruce
I updated the mkCTM stuff while I was at it anyway. /phk
ache [Mon, 24 Oct 1994 03:48:44 +0000 (03:48 +0000)]
Remove undocumented talk behaviour, when names like
aa.bb aa:bb and aa!bb treated as user+host and not as local user
names (especially aa.bb is common case).
Only @ is valid user/host separator according to manpage. Pointed-by: doctor@dream.demos.su
paul [Mon, 24 Oct 1994 03:30:56 +0000 (03:30 +0000)]
Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
wollman [Sun, 23 Oct 1994 21:33:57 +0000 (21:33 +0000)]
Updated to latest kernel code. Also provided a friendlier output format,
which is enabled by default (use `-c' to get the old format). The new
format looks like this (only the values are correct; this was taken on my
machine with a slightly old kernel):
Device St Parent Description
---------- -- ---------- --------------------------------------------------
isa0 NC -
sc0 NC isa0 Parallel printer adapter
ed0 NC isa0 SMC8216/SMC8216C
sio0 NC isa0 RS-232 serial port
sio1 NC isa0 RS-232 serial port
fdc0 NC isa0 floppy disk/tape controller
fd0 NC fdc0 floppy disk
wdc0 NC isa0 ST506/ESDI/IDE disk controller
wd0 NC wdc0 ST506/ESDI/IDE disk
npx0 NC isa0 Floating-point unit
Note that many of these fields could be made more informative; I tried to make
my changes as unintrusive as possible. See the `mcd' driver for an example
of one which actually does something with the `state' field.
wollman [Sun, 23 Oct 1994 21:28:03 +0000 (21:28 +0000)]
Finished device configuration database work for all ISA devices (except `ze')
and all SCSI devices (except that it's not done quite the way I want). New
information added includes:
- A text description of the device
- A ``state''---unknown, unconfigured, idle, or busy
- A generic parent device (with support in the m.i. code)
- An interrupt mask type field (which will hopefully go away) so that
. ``doconfig'' can be written
This requires a new version of the `lsdev' program as well (next commit).
guido [Sun, 23 Oct 1994 15:33:55 +0000 (15:33 +0000)]
The talkd security hole can ealso be exploited by wall (and thus rwall).
write and talk are not affected.
Now print out escape sequences in the same way as is done by write(1).
wollman [Sat, 22 Oct 1994 23:47:21 +0000 (23:47 +0000)]
Completed last fix: don't use backquotes in here-documents; it confuses
ash. (The backquotes were only used to implement a slower version of
${foo-$bar} anyway.)
jkh [Sat, 22 Oct 1994 23:02:39 +0000 (23:02 +0000)]
1. PREFIX has nothing to do with DESTDIR. Remove it finally.
2. Make sure to pass PREFIX to sub-makes when installing. This allows you to
install to places like ${PREFIX}/bin in your own install rule.