Commit Graph

36946 Commits

Author SHA1 Message Date
Andrew Gallatin
22fae70741 zero out switchtime.tv_sec. This fixes a fairly serious problem where
processes were being charged for time when the system was idle.
1999-04-16 13:57:38 +00:00
Hidetoshi Shimokawa
4940ba38d3 - Add another adhoc frame_size detection for stack trace.
egcs manupilates stack pointer with 'subq/addq' rather than 'lha'.
- Surpress warnings
1999-04-16 12:04:39 +00:00
Guy Helmer
e59df474f8 Revise list of interfaces on which bridging is supported. mdoc-ify a few
things while I'm here.
1999-04-16 02:09:38 +00:00
Guy Helmer
93c0b05959 Add bridging support (tested in 3.1-RELEASE by Steven Vetzal
<svetzal@icom.ca>).
1999-04-16 01:56:06 +00:00
Eivind Eklund
243c4c6d7f Better handling for ARP/source routing on Token Ring
Submitted by:	Larry Lile <lile@stdio.com>
1999-04-15 17:58:24 +00:00
Bruce Evans
6b2480cf2e Removed dead code and cleaned up. setconf() now just asks for the
root device name.  The parser for the name is still too simple (it
forces slice = none, partition = 'a').
1999-04-15 15:35:32 +00:00
Bruce Evans
e05da2e941 Made booting with -a work for all configurations. Previously it
only worked for configurations with "swap on generic".

usr.sbin/config/config.y:
- ignore all "swap [on] device ...' specifications except for
  warning about them.  They haven't done anything related to swap
  for almost 4 years, and were previously silently ignored,
  except for "swap on generic" which stopped swap${KERNEL}.c
  from being generated.  Code to support swapping is now deader
  than before.

usr.sbin/config/mkswapconf.c:
- don't generate a dummy setconf() function in swap${KERNEL}.c.

sys/i386/conf/files.i386:
- swapgeneric.c is now standard.  It should be merged into autoconf.c
  so that it doesn't conflict with swap${KERNEL}.c for kernels named
  "generic".

sys/i386/i386/autoconf.c:
- don't call setroot() for mfs roots.  Since setroot() doesn't do anything
  harmful, this was just a waste of time, except possibly for booting with
  -a it may have helped prevent an undesireable call to setconf() by
  finding a bogus rootdev.
- honor -a for ffs roots.  -a now overrides all other ways of specifying
  the root device.  Previously, -r had precedence over -a, and the -a
  handling was usually a no-op.
- don't honor -a for non-ffs roots, since it would currently just get in
  the way of a clean panic.

sys/i386/i386/swapgeneric.c:
- don't declare things that are now always declared in swap${KERNEL}.c.
  Don't decide things that are now decided in autoconf.c.  Code to
  support the "generic" case is now dead instead of useless.
1999-04-15 14:52:24 +00:00
Dag-Erling Smørgrav
a76ec619d7 Nuke lsock(1). 1999-04-15 13:43:22 +00:00
Dag-Erling Smørgrav
28bfda3471 lsock(1) -> sockstat(1) 1999-04-15 13:42:48 +00:00
Dag-Erling Smørgrav
5827850902 Rename lsock(1) to sockstat(1).
Suggested by:	Sheldon Hearn <sheldonh@iafrica.com>
Approved by:	Peter Wemm <peter@netplex.com.au>
1999-04-15 13:40:43 +00:00
David E. O'Brien
4a92ca74bf Foo. jdp changed .so to .So during the time I did the EGCS work and I
missed bring in his changes into my work.
1999-04-15 08:08:56 +00:00
David E. O'Brien
96777bea6b Create /var/db/port.mkversion rather than /var/db/pkg/.mkversion to be in
sync with bsd.port.mk rev 1.309.

Submitted by:	make world
1999-04-15 07:19:56 +00:00
Warner Losh
d24adca851 Clarify the current state of cc -aout:
Compiling -g sometimes doesn't work (from Bruce)
	libgcc_r won't build (Jos Backus)
Also mention that make -j n world is working again
1999-04-15 04:36:45 +00:00
Bill Paul
ae1a2d45d9 - Close PR #11136: add PCI ID for another new cyclone device: the
3c900B-TPC (twisted pair and coax). Treated similarly to the
  3c900B-COMBO, except no AUI port.

- Fix media selection so that it's possible to select the AUI and BNC
  ports on the 3c905B-COMBO. This board is now fully supported.

- Change TX queueing strategy to hopefully be more efficient by avoiding
  register accesses in xl_start(). Should provide small performance
  improvement and a little better reliability.
1999-04-15 03:18:33 +00:00
Alexander Langer
9b0f83b7fb Added missing newline to "no ports found!" message. 1999-04-15 00:13:20 +00:00
David E. O'Brien
09ee9e267c Remove references to libg++ and libf2c that aren't needed post-EGCS. 1999-04-14 23:59:09 +00:00
Bill Paul
bd43efdba2 Grrr. Make all modes work properly with the 82c168 chip and built-in
transceiver. Note in the manual page that autoselection doesn't
work on the 82c168 because the built-in NWAY support is horribly
broken. Manual mode selection works fine, but autoneg is broken for
everything except maybe 10Mbps half-duplex. There's no simple way
to fix this at the moment, so I have to settle for documenting the
bug for now. Fortunately, there aren't anywhere near as many 82c168
boards around as there are 82c169s.
1999-04-14 19:40:08 +00:00
Dmitrij Tejblum
35871a15c5 getnewbuf(): check return value from tsleep(). Interruptible NFS may pass
PCATCH to slpflag.
1999-04-14 18:51:52 +00:00
Nik Clayton
b38ec08e39 Fix typos.
PR:		docs/8682
Submitted by:	hnokubi@yyy.or.jp
Reviewed by:	nik
1999-04-14 18:49:15 +00:00
Nik Clayton
a53f20cc1e Change description of file(1) following symlinks to the truth (namely,
by default, file(1) does not follow symlinks, the -L flag must be
specified.

PR:		docs/8602
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
Reviewed by:	nik
1999-04-14 18:45:07 +00:00
Matt Jacob
17b1ea0341 temp fix for internal queue overflow problem 1999-04-14 17:37:36 +00:00
Peter Wemm
7bf01a1401 Add example for 'makeoptions DEBUG' and some notes. I have not activated
it here since a -g LINT kernel is 100% useless as it won't run and hence
doesn't need debug capabilities (and would just waste disk space :-).
1999-04-14 16:54:00 +00:00
Dag-Erling Smørgrav
aa9e9524c9 Activate lsock(1). 1999-04-14 16:17:52 +00:00
Dag-Erling Smørgrav
508f6b17c4 Import lsock(1), a Perl script for listing open Internet sockets. 1999-04-14 16:17:34 +00:00
Bruce Evans
41829901a9 Install kld.4.
Sorted lists.
1999-04-14 16:04:55 +00:00
Bruce Evans
173c0b9aba Search bdevsw[] instead of the half-baked builtin table of devices
in the RB_ASKNAME case.  I had thought that I made this change in
rev.1.18, but rev.1.18 only affects obscure subcases of the
RB_DFLTROOT case (subcases where the compiled in default root is
not found in bdevsw[] -- then the root device is set to the first
device in the half-baked table that is also in bdevsw[]).

Removed yet more vestiges of config-time swap configuration.
1999-04-14 15:20:03 +00:00
Bruce Evans
6a9df7a421 Generate intrnames[] dynamically. This should be new-bus friendly.
Old version reviewed by: se
1999-04-14 14:26:36 +00:00
David E. O'Brien
4b056ee860 Document the "-D" option (UTSL). 1999-04-14 05:37:54 +00:00
Bill Paul
68cd974800 Close PR #11122: check key length before calling strncmp()
in yp_next_record().
1999-04-14 04:05:59 +00:00
David E. O'Brien
073f9b19ff Support linking against libgcc_r.
Submitted by:	Luoqi Chen <luoqi@chen.ml.org>
1999-04-14 00:25:45 +00:00
David E. O'Brien
a10a6b606b Create a libgcc with POSIX threads support.
Submitted by:	Luoqi Chen <luoqi@chen.ml.org> (reorganized by me)
1999-04-14 00:24:03 +00:00
Peter Wemm
112904833c Add a commented-out example on using the makeoptions command to get a
kernel.debug.
1999-04-13 20:59:36 +00:00
Peter Wemm
b9da114482 Build the functionality of the wdc_p hack into the ide_pci.c code.
All it did was match a specific device ID and turn on a quirk for
the wdc driver.

Incidently, at line 1462 there is a return that prevents the generic
ide_pci code from trying to look at the device.  I'd be interested
to know if we can take out the return and let the generic code "see" it.
I've left the return in because that's the way it worked before.

(Be sure to rerun config after cvsup or you'll get undefined files!)
1999-04-13 20:22:34 +00:00
Peter Wemm
3e3e4375c8 Shoot the LKM support in the old wd/wdc/atapi driver set in the head and
perform a cleanup/unifdef sweep over it to tidy things up.  The atapi
code is permanently attached to the wd driver and is always probed.

I will add an extra option bit in the flags to disable an atapi probe on
either the master or slave if needed, if people want this.

Remember, this driver is destined to die some time.  It's possible that
it will loose all atapi support down the track and only be used for
dumb non-ATA disks and all ata/atapi devices will be handled by the new
ata system.

ATAPI, ATAPI_STATIC and CMD640 are no longer options, all are implicit.

Previously discussed with:  sos
1999-04-13 19:38:12 +00:00
Peter Wemm
b8df55a044 Move the declaration of faultin() from the vm headers to proc.h, since
it is now referenced from a macro there (PHOLD()).
1999-04-13 19:17:15 +00:00
Peter Wemm
4962041b9b Drop the atapi module from the build, it's just wasting time. 1999-04-13 18:53:54 +00:00
Peter Wemm
bdcedd79c5 Hopefully replicate the install.debug changes from the i386 version. 1999-04-13 18:35:28 +00:00
Peter Wemm
4e8691dc95 Clean up the kernel/kernel.debug/install.debug etc stuff.
Sense ${DEBUG} to decide on building kernel.debug or not.
Use a common install and install.debug target to minimize duplication.
(I deleted the ELF transition kernel warning, it was getting dated..)
1999-04-13 18:25:08 +00:00
Peter Wemm
b282e6c130 Clean up the -g/DEBUG handling. This logic can go in the Makefile
so that config -g can work the same as:  makeoptions DEBUG="-g"
1999-04-13 18:22:57 +00:00
Mark Murray
a4e77b9b5f As the INFO stuff un doc/ works, we may as well build/install it.
OK'ed by:	obrien
1999-04-13 17:56:28 +00:00
Bill Paul
ca31683853 Some more fixes:
- It turns out that the 'promiscuous mode' bug what I discovered with the
  PNIC is not restricted to promiscuous mode. I've been doing some remote
  debugging for someone with a P75 system, and at 100Mbps, the receiver
  screws up even when the NIC is in normal mode. Thus, enable the workaround
  for this bug all the time. Note that the workaround is still not enabled
  for the PNIC II, since I haven't tested one yet.

- Set the 'arbitration' bit in the bus configuration register and set the
  maximum burst size to 16 longwords. This seems to fix problems with
  transmit corruption on the P75 system mentioned above. (It probably hurts
  performance a bit too, but I've given up trying to make the PNIC perform
  well.)
1999-04-13 17:29:55 +00:00
Hidetoshi Shimokawa
9d3c09b69f Use u_int32_t for sin_addr.s_addr rather than u_long to avoid
unaligned access on alpha.
1999-04-13 16:26:21 +00:00
Hidetoshi Shimokawa
76fcfc1aba Initialize alpha_unaligned_* as I intended.
I misunderstood SYSCTL_INT in previous revision.
1999-04-13 15:42:34 +00:00
Semen Ustimenko
2286ba29c0 Removed DIAGNOSTIC opion redefinition.
Submitted by:	Eivind Eklund <eivind@FreeBSD.org>
1999-04-13 14:54:20 +00:00
Guy Helmer
4bef9e2275 Reference kldfind(2), kldfirstmod(2), kldload(2), kldnext(2), kldstat(2),
and kldunload(2).

Submitted by:	Chris Costello <chris@holly.dyndns.org>
1999-04-13 14:51:51 +00:00
Guy Helmer
22872b5fc2 Add kld(4) man page. Copyright notice in PR submission was "???", which
I changed to "Christopher G. Demetriou" since the page appears to be a
revision of lkm(4).

PR:		docs/8611
Submitted by:	Rajesh Vaidheeswarran <rv@fore.com>
1999-04-13 13:23:11 +00:00
Martin Cracauer
466b673d7e Remove my temporary detection for PR 7059, Tor Egge fixed this bug.
PR:		7059
1999-04-13 12:43:55 +00:00
Hellmuth Michaelis
4b3cd41c63 Make sending the postcard optional (as suggested by phk). 1999-04-13 12:24:33 +00:00
Bruce Evans
5570727607 Fixed bogus SRCS definition which broke make depend'. Plain make'
worked accidentally because the rule to generate ${OBJS} from ${SRCS}
is sloppy.

Fixed style bugs.
1999-04-13 09:11:20 +00:00
Warner Losh
d5ca06364c Note that cc -aout has been broken for a while and a reminder to
recompile now that it has been fixed.

Submitted by: Peter Wemm
1999-04-13 06:10:53 +00:00