Commit Graph

47270 Commits

Author SHA1 Message Date
dillon
cccdb366d9 The SMP cleanup commit broke need_resched, this fixes that and also
removed unncessary MPLOCKED and 'lock' prefixes from the interrupt
    nesting level, since (A) the MP lock is held at the time, and (B) since
    the neting level is restored prior to return any interrupted code
    will see a consistent value.
2000-03-29 06:15:43 +00:00
jlemon
6a7dfc7767 Change the mbuf size from 128 -> 256. Increasing the mbuf header size
caused some headers not to fit in MHLEN any more.  This matches the
current size on the alpha, so it shouldn't cause problems.

Problem observed by:	   Geoff Rehmet <geoff@is.co.za>
Originally suggested by:   shin
2000-03-29 05:39:04 +00:00
kato
7af5f89a60 Added indirect pio into the bus space stuff for the NEC PC-98. bus.h
includes one of bus_at386.h and bus_pc98.h. Becuase only bus_pc98.h
supports indirect pio and bus_at386.h is identical to old bus.h, there
is no functional change in PC-AT's kernels.  That is, it cannot cause
performance loss.

Submitted by:	nyan
Reviewed by:	imp
bde and luoqi provided useful comments for earlier version.
2000-03-29 03:15:22 +00:00
green
beae0af3f3 Actually, ${LIBY}/-ly aren't needed either. This should finish unbreaking
the world build.
2000-03-29 00:54:06 +00:00
brian
a252b602e2 Mention the value of the unexpected return code in nat_LayerPull() 2000-03-29 00:14:24 +00:00
joerg
1c82e2d762 Added two missing newlines in calls to log(9).
Reported in Usenet by: locke@mcs.net (Peter Johnson)

While i was at it, prepended a 0x to the %D output, to make it clear that
the printed value is in hex (i assume %D has been chosen over %#x to
obey network byte order).
2000-03-28 21:14:35 +00:00
n_hibma
85bc59fa0d Remove some cruft 2000-03-28 19:07:37 +00:00
cg
fb4f8b3940 split up ess and sb code
rewrite ess mixer to use native registers
rewrite play/rec code to use more accurate timer when available
add code to use audio2 for playback, but disable it as no irqs are generated
2000-03-28 18:31:01 +00:00
dillon
b852fcb160 The SMP cleanup commit broke UP compiles. Make UP compiles work again. 2000-03-28 18:06:49 +00:00
shin
1ec21e179d Avoid using sed and awk in configure script.
TODO: also replace other sed and awk usages.

Submitted by: wollman
2000-03-28 17:46:02 +00:00
shin
ef2ad588bc Add a configuration options which enable/disable IPv4 mapped IPv6 addr
support.

Suggested and Reviewed by: ume
2000-03-28 17:39:53 +00:00
n_hibma
b9cb6f83fc Revert to a static value for the timeout. The timeout was supposedly
to be based on the transfer speed, but I got it all wrong. The by far
biggest factor in the timeout is the start of a removable device, which
is about 2 seconds anyway.

Prodded by: Lennart Augustsson
2000-03-28 17:38:00 +00:00
cwt
25904dc02e Clarify the disposition of hosts.deny and provide a logically
consistent portmap example rule.
Reviewed by: obrien, markm
Obtained-good-ideas from: obrien
2000-03-28 17:28:56 +00:00
sheldonh
5510bc1924 Back out the new advice introduced in the previous commit, which at
least one reviewer is now unhappy with, since it contains incomplete
and misleading advice that is not easy to correct.

The net effect of this commit and the previous commit is to simply
remove all discussion of setting dumpdev to catch crash dumps
prior to entering user mode.
2000-03-28 15:54:32 +00:00
brian
2442f64e8a don't treat # specially if PARSE_NOHASH is passed 2000-03-28 15:14:15 +00:00
brian
7d12e18643 Don't treat # specially here 2000-03-28 15:11:38 +00:00
kato
96493b09f8 Merged from sys/isa/fd.c revision 1.180. 2000-03-28 15:09:13 +00:00
kato
f4ae8badfd Merged from sys/i386/i386/userconfig.c revision 1.179. 2000-03-28 15:07:28 +00:00
kato
1159fc51b0 Merged from sys/i386/i386/machdep.c revision 1.387. 2000-03-28 15:04:29 +00:00
ache
15bf78e6dc Back out valid argument domain change - sneak to this function by error.
Reword test condition better. Previous variant was true for negative
characters too.
2000-03-28 11:46:40 +00:00
shin
dccba108fa Remove libl related dependencies, because it is not necessary, and even more,
it cause building world failure.

Specified by: Nickolay Dudorov <nnd@mail.nsk.ru>
2000-03-28 11:41:18 +00:00
ache
68cad6a3ea Describe valid argument domain for 8-bit wide locales to prevent common error
calling ctype functions with signed char as an argument.
2000-03-28 11:36:31 +00:00
hm
e3991c3acf pcvt cleanup. remove hopeless outdated example/demo Microemacs
file. update Makefile.
2000-03-28 10:12:03 +00:00
sheldonh
65439ee8c6 Optimize those services that send only one block of data: use send(2)
with the MSG_EOF flag set instead of write(2).

Submitted by:	David Malone <dwmalone@maths.tcd.ie>
Reviewed by:	wollman
2000-03-28 09:45:19 +00:00
hm
e18d9de537 pcvt cleanup.
add $FreeBSD$
remove obsolete and completely outdated files.
2000-03-28 09:41:40 +00:00
sheldonh
43fdfa4059 Update instructions for setting the dump device prior to multi-user
mode.

Reported by:	dcs
Submitted by:	asmodai
2000-03-28 09:32:38 +00:00
hm
5fb7299e72 pcvt cleanup.
after cleaning up pcvt_ioctl.h (and ispcvt) adjust kernel part
again to get everything in sync again (name, minor release no.
and major release no.)
2000-03-28 09:32:29 +00:00
hm
f548f3dd8d pcvt cleanup.
remove obsolete stuff resulting from the pcvt kernel part cleanup.
2000-03-28 09:29:50 +00:00
hm
d89148d84c pcvt update.
remove obsolete stuff.
2000-03-28 09:26:48 +00:00
hm
8482b92592 pcvt cleanup.
add $FreeBSD$
get copyright in sync with FreeBSD recommendation.
2000-03-28 09:26:02 +00:00
hm
92604fe2cc pcvt cleanup.
add $FreeBSD$.
get copyright in sync with FreeBSD recommendation.
make it compile and run again.
add a manpage.
2000-03-28 09:24:38 +00:00
hm
133e15ccd6 pcvt cleanup.
add $FreeBSD.
get copyright in sync with FreeBSD recommendation.
remove obsolete stuff resuling from pcvt kernel part cleanup
 (caution: this depends in part on modifications to pcvt_ioctl.h,
  commit will follow shortly).
add new option "-n" to ispcvt to get number of compiled-in
 virtual screens.
2000-03-28 09:21:05 +00:00
hm
8ae55b34de pcvt cleanup. add $FreeBSD$. 2000-03-28 09:07:18 +00:00
hm
56760b941d pcvt cleanup. add $FreeBSD$. get copyright in sync with
FreeBSD recommendation.
2000-03-28 09:06:19 +00:00
hm
262de47040 pcvt cleanup. add $FreeBSD$. get copyright header in sync with
FreeBSD recommendation.
2000-03-28 09:04:02 +00:00
hm
56d06b6f8e pcvt cleanup. added $FreeBSD$. get copyright header in sync with
the FreeBSD recommendation.
2000-03-28 09:02:52 +00:00
sheldonh
2990034f0b Cross-reference ldd(1) in rtld(1) and vice versa. 2000-03-28 09:01:04 +00:00
hm
e3da90f71b pcvt cleanup. added $FreeBSD$. 2000-03-28 09:00:24 +00:00
hm
5b0864e192 pcvt cleanup. removed obsolete dependencies. 2000-03-28 08:59:35 +00:00
dillon
689641c1ea Commit major SMP cleanups and move the BGL (big giant lock) in the
syscall path inward.  A system call may select whether it needs the MP
    lock or not (the default being that it does need it).

    A great deal of conditional SMP code for various deadended experiments
    has been removed.  'cil' and 'cml' have been removed entirely, and the
    locking around the cpl has been removed.  The conditional
    separately-locked fast-interrupt code has been removed, meaning that
    interrupts must hold the CPL now (but they pretty much had to anyway).
    Another reason for doing this is that the original separate-lock for
    interrupts just doesn't apply to the interrupt thread mechanism being
    contemplated.

    Modifications to the cpl may now ONLY occur while holding the MP
    lock.  For example, if an otherwise MP safe syscall needs to mess with
    the cpl, it must hold the MP lock for the duration and must (as usual)
    save/restore the cpl in a nested fashion.

    This is precursor work for the real meat coming later: avoiding having
    to hold the MP lock for common syscalls and I/O's and interrupt threads.
    It is expected that the spl mechanisms and new interrupt threading
    mechanisms will be able to run in tandem, allowing a slow piecemeal
    transition to occur.

    This patch should result in a moderate performance improvement due to
    the considerable amount of code that has been removed from the critical
    path, especially the simplification of the spl*() calls.  The real
    performance gains will come later.

Approved by: jkh
Reviewed by: current, bde (exception.s)
Some work taken from: luoqi's patch
2000-03-28 07:16:37 +00:00
imp
9c60490f9c Normally I don't put entries that should have been made months ago
into UPDATING.  However, in this case I'm making an exception.  I'm
adding a recommendation that people update their boot blocks.  Old
boot blocks will cause a system to become unbootable if you have
removed /dev/{,r}wd*.

Submitted by: Jeroen Ruigrok/Asmodai <asmodai@freebsd.org>
2000-03-28 06:59:46 +00:00
dg
cc7dea2aa9 Added support for cards and on-motherboard NICs that use an SEEPROM
address size that is different than the standard 6bits. This fixes
support for the Compaq NC3121 card, certain newer Intel Pro/100+
cards, and should also fix integrated NICs on SuperMicro and Compaq
motherboards.
The auto-sizing algorithm was taken from NetBSD (thanks!), which I
think got it from Linux originally.
Thanks also to Andrew Sparrow <spadger@best.com> and Joe Moore
<jomor@ahpcns.com> for supplying me with unworking Compaq and Intel
cards to develop and test the fixes with.
2000-03-28 04:41:42 +00:00
dillon
b387f628ec Misattribution - the excellent SPLASSERT work is being done by
Paul Saab <paul@mu.org>, of course!
2000-03-28 02:08:39 +00:00
jhb
528aa61b66 Mega i386 loader commit.
- Don't hard code 0x10000 as the entry point for the loader.  Instead add
  src/sys/boot/i386/Makefile.inc which defines a make variable with the
  entry point for the loader.  Move the loader's entry point up to
  0x20000, which makes PXE happy.
- Don't try to use cpp to parse btxldr for the optional BTXLDR_VERBOSE,
  instead use m4 to achieve this.  Also, add a BTXLDR_VERBOSE knob in the
  btxldr Makefile to turn this option on.
- Redo parts of cdldr's Makefile so that it now builds and installs cdboot
  instead of having i386/loader/Makefile do that.  Also, add in some more
  variables to make the pxeldr Makefile almost identical and thus to ease
  maintainability.
- Teach cdldr about the a.out format.  Cdldr now parsers the a.out header
  of the loader binary and relocates it based on that.  The entry point of
  the loader no longer has to be hardcoded into cdldr.  Also, the boot
  info table from mkisofs is no longer required to get a useful cdboot.
- Update the lsdev function for BIOS disks to parse other file systems
  (such as DOS FAT) that we currently support.  This is still buggy as
  it assumes that a floppy with a DOS boot sector actually has a MBR and
  parses it as such.  I'll be fixing this in the future.
- The biggie:  Add in support for booting off of PXE-enabled network
  adapters.  Currently, we use the TFTP API provided by the PXE BIOS.
  Eventually we will switch to using the low-level NIC driver thus
  allowing both TFTP and NFS to be used, but for now it's just TFTP.

Submitted by:	ps, alfred
Testing by:	Benno Rice <benno@netizen.com.au>
2000-03-28 01:19:53 +00:00
green
5a96429bd9 Allow using "-d username" without "-r". Example:
auth   stream  tcp     nowait  root    internal        auth -d "Only fools trust ident"
2000-03-28 01:10:35 +00:00
dillon
d7295a1a39 Add a sysctl to specify the amount of UDP receive space NFS should
reserve, in maximal NFS packets.  Originally only 2 packets worth of
    space was reserved.  The default is now 4, which appears to greatly
    improve performance for slow to mid-speed machines on gigabit networks.

    Add documentation and correct some prior documentation.

Problem Researched by: Andrew Gallatin <gallatin@cs.duke.edu>
Approved by: jkh
2000-03-27 21:38:35 +00:00
dillon
5ccef75e02 Add necessary spl protection for swapper. The problem was located by
Alfred while testing his SPLASSERT stuff.   This is not a complete fix,
    more protections are probably needed.
2000-03-27 21:33:32 +00:00
dillon
8fb4c6b599 Commit the buffer cache cleanup patch to 4.x and 5.x. This patch fixes a
fragmentation problem due to geteblk() reserving too much space for the
    buffer and imposes a larger granularity (16K) on KVA reservations for
    the buffer cache to avoid fragmentation issues.  The buffer cache size
    calculations have been redone to simplify them (fewer defines, better
    comments, less chance of running out of KVA).

    The geteblk() fix solves a performance problem that DG was able reproduce.

    This patch does not completely fix the KVA fragmentation problems, but
    it goes a long way

Mostly Reviewed by: bde and others
Approved by: jkh
2000-03-27 21:29:33 +00:00
charnier
5c16c2a8f1 Revert spelling mistake I made in the previous commit
Requested by: Alan and Bruce
2000-03-27 20:41:17 +00:00
charnier
5a4abe1599 Get rid of hard sentence break
Asked by: Sheldon
2000-03-27 20:38:21 +00:00