23011 Commits

Author SHA1 Message Date
perry
3189406a17 Small fix to make this compile even if no BPFs are being compiled
in. Unfortunately, the BPF-only code called a label that wan't also
being #if'ed, and this made the compiler bitch. Now that we compile
with -Werror, this prevented the thing from compiling at all! (sigh)
1996-10-21 01:58:23 +00:00
perry
7117cf93ec Add #include <sys/systm.h>, so that cc -W* doesn't bitch and error out
when printf() gets used in this file.
1996-10-21 01:49:22 +00:00
perry
9ab047883b Fix unused variable -Wxxx failure when MINIROOTSIZE defined. 1996-10-21 01:32:38 +00:00
scottr
a6865e3d2b Don't try to reference nfsbootdevname if we have no ether devices.
Fixes PR 2860, from Paul Goyette <paul@pgoyette.bdt.com>.
1996-10-21 00:31:18 +00:00
perry
3ea4778cd7 Add options(4), and re-jigger the MAN and SUBDIR lines in the file. 1996-10-21 00:00:05 +00:00
perry
c72a1ab8ba Initial commit of the options(4) man page, which documents machine
independent options available during kernel configuration. The man
page is still incomplete, but there is enough in it that it should be
in the repository. Next on the list: port specific versions of this
page.
Many thanks to the cast of thousands who helped contribute text for
this.
1996-10-20 23:58:12 +00:00
thorpej
43ba106ec2 Remove declaration for now-gone function. 1996-10-20 23:47:40 +00:00
thorpej
af8d8d2a56 Arrange this file into sections (configure(), root device goo, console goo,
old-config goo).  Place old-config goo at the end so that it's easy to
#ifdef our or delete (muahahah!).

Garbage collect a couple of unused functions.
1996-10-20 23:46:06 +00:00
thorpej
bbdd41a2a7 Back out last change, and add a comment about what should happen.
(*grumble* will teach me to do a `make clean' next time.)
1996-10-20 23:23:28 +00:00
explorer
372fde2053 Add correct copyright 1996-10-20 23:15:21 +00:00
mrg
155a0b4d1d enable lkm on non alpha/mips platforms. 1996-10-20 23:03:07 +00:00
hpeyerl
7aa41bf1a7 #ifdef out a couple of variables dependant on USER_LDT. 1996-10-20 22:39:03 +00:00
thorpej
cdc9144332 Add missing '}', from David Carrel <carrel@ipsec.com>, PR #2873. 1996-10-20 21:59:36 +00:00
thorpej
575dc254e0 Remove the redundant copy of this file.
Suggested by David Carrel <carrel@ipsec.com>, PR #2872.
1996-10-20 21:55:14 +00:00
thorpej
e993622070 Add missing a_family member to struct netauth.
From David Carrel <carrel@ipsec.com>, PR #2872.
1996-10-20 21:53:20 +00:00
pk
52acac0518 Regroup the definitions of NBPG, PGOFSET and PGSHIFT into the section that
enumerates the possible SUN? combinations.
1996-10-20 20:26:52 +00:00
pk
62c32ff2dc Drop a duplicate `#include ppp.h'; noted by Chris Demetriou. 1996-10-20 19:32:42 +00:00
pk
4dd0b24bf9 Make sure to refer to `sc_ovtype' only when SUN4 is defined, as noted
by `r.evans@ic.ac.uk'.
Also, explicitly testwhether we're dealing with a pfour.
1996-10-20 19:18:00 +00:00
pk
b246894d9b Document `-a karch' option.
Fix a formatting nit.
1996-10-20 16:17:04 +00:00
pk
5ced353a7a Add -a <arch>' switch to force the target architecture. Retain -h' for
compatibility.
1996-10-20 16:00:14 +00:00
fvdl
735944405b Enhancements from Matthias Drochner:
- Try V3 first for diskless booting. Fall back to V2 if V3 fails.
	- optionally (option NFS_BOOT_TCP) try a TCP mount first
	  for diskless booting. Fall back to UDP if it fails.
	- Enable switching between UDP and TCP for remounts.
1996-10-20 13:13:22 +00:00
thorpej
7133ecf2ca Don't need to mark 0-NBPG as VM_PROT_NONE in kernel_map anymore; the
first entry is now properly setup in kmem_init().
1996-10-19 21:11:32 +00:00
thorpej
7958973110 Set VM_MIN_KERNEL_ADDRESS to NBPG. This is a better way of getting
the kernel_map to treat page 0 properly.
1996-10-19 21:07:42 +00:00
perry
a0028dc022 Remove spurious clock_* syscalls that got committed last night. They
broke shared libc's very badly. (Okayed by thorpej).
1996-10-19 18:42:12 +00:00
is
e10e9e8455 Clean up the attach messages a bit. 1996-10-19 16:54:14 +00:00
jonathan
3bd4c6caee regen from pcidevs 1.20 1996-10-19 13:04:51 +00:00
jonathan
7717235f4c Add productId for RealTek 8029 PCI ethernet board. 1996-10-19 13:01:49 +00:00
jonathan
05c95ca095 Update copyright. 1996-10-19 12:40:31 +00:00
jonathan
a68c573b21 Rewrite from scratch. 1996-10-19 12:32:04 +00:00
thorpej
cf9b36ab1d Set up a kernel_map entry for the text segment with protection of
VM_PROT_READ|VM_PROT_EXECUTE.  The previous default (VM_PROT_ALL)
would cause the following scenario:
	- someone attempts to write kernel text (my test was writing
	  to an offset of /dev/kmem which was known to be in the text
	  segment, while in single-user mode).
	- enter trap() with MMU fault (because of RO pte).
	- trap() calls vm_fault(), which looks up vm_map_entry for
	  fauling address.
	- vm_fault interprets write fault and VM_PROT_WRITE (in VM_PROT_ALL)
	  as COW; new page allocated, data copied to new page, new page
	  mapped in at trunc_page(<faulting va>).
	- wow, look at the fireworks!
Fixes two potential symptoms:
	- kernacc() returns TRUE when checking for permission to write
	  an offset in kernel text, which is bogus, since the text has
	  been mapped RO by pmap_bootstrap().
	- Handling of a stray pointer that attempted to scribble into
	  kernel text would not be executed properly.
1996-10-19 08:51:33 +00:00
abrown
e613224229 Remove leftover printf("here") from last change. 1996-10-19 02:38:36 +00:00
sommerfe
e21d0de843 Fix PR1542: gross inaccuracies in bdes.1 Reviewed by Perry 1996-10-19 00:59:26 +00:00
jtc
4f35ae26fc Generate syscall functions which can never fail (getgid, getegid, geteuid,
getpid, getppid, ...) with new RSYSCALL_NOERROR macro which has been added
to the SYS.h header of each port.
1996-10-19 00:54:22 +00:00
jtc
41da409893 Added new macros:
SYSCALL_NOERROR(x):     Like SYSCALL except that "x" is a syscall
				that can never fail.

        RSYSCALL_NOERROR(x):    Like RSYSCALL except that "x" is a syscall
				that can never fail.

These macros simply call SYSCALL / RSYSCALL, and serve as placeholders
until an optimized implementation is done.
1996-10-19 00:25:22 +00:00
cgd
cb9edbe5f6 slight clean up of that last (fix some major numbers) 1996-10-18 21:53:27 +00:00
cgd
a6d9feb7a5 clean up chrtoblktbl, adding comments naming the devices which actually do
have entries in both device switch tables.  Add 'st' entry to chrtoblktbl.
1996-10-18 21:26:57 +00:00
cgd
f753842b39 sync with conf.c: kill mmclock; add rd, audio, ss, and uk. 1996-10-18 21:16:39 +00:00
cgd
44365140cf Severely clean up netisr handling. Clean up includes for netisr handlers.
Fix PPP netisr handling, add NATM netisr handling.
1996-10-18 20:35:23 +00:00
perry
179ea08328 add lots of shared libraries and _pic.a files 1996-10-18 20:01:03 +00:00
perry
1f1e73e82c add telnet, tn3270, man pages for bdes and libcrypt 1996-10-18 19:39:55 +00:00
jtc
41056da8a0 Include <machine/asm.h> instead of defining our own ENTRY() macro
Changed all instances of ENTRY() to match the new calling convention
(it takes a second argument ).

Added new macros:
	SYSTRAP(x):		Expands to the code used to call syscall x.
				This is used to simplify other macros.

	SYSCALL_NOERROR(x):	Like SYSCALL except that "x" is a syscall
				that can never fail.

	RSYSCALL_NOERROR(x):	Like RSYSCALL except that "x" is a syscall
				that can never fail.
1996-10-18 19:37:48 +00:00
chuck
41a87a7ae0 fix: add missing ntohs() for llc mode, as noted by several people including
Dong Lin, Zdenek Salvet, and Matthias Drochner(i think).
1996-10-18 19:26:54 +00:00
explorer
334d950e16 Update bt.4 -> bha.4 change; closes pr port-i386/2862 with slightly different
wording
1996-10-18 19:16:47 +00:00
explorer
1eb25edb23 Fix the Nx macro yet again... If someone else knows nroff better than I do,
please make this .Nx thing generic
1996-10-18 19:11:25 +00:00
explorer
8e51deab33 rename bt.4 -> bha.4; part of pr port-i386/2862 1996-10-18 18:45:45 +00:00
explorer
efccf77947 Add quirk entries for two more optical drives; closes pr kern/2861 1996-10-18 17:22:17 +00:00
explorer
3dc8e5446d | -> } in manual page; closes pr bin/2858; mailed patch to author 1996-10-18 17:10:52 +00:00
fvdl
d1400746a5 Fix some printf formatting strings within DEBUG and DIAGNOSTIC defines.
From Mike Long, PR 2859
1996-10-18 09:03:42 +00:00
thorpej
6126eea479 Tell the `upper half' of the VM system that page 0 isn't mapped. If we
don't do this, kernacc() will bogusly return TRUE for page 0, causing a
NULL pointer dereference in uiomove() when reading /dev/kmem.

Thanks to Scott Reynolds for noticing the problem.
1996-10-18 08:57:14 +00:00
mrg
8fd70c1fe1 in coredump(), check the SUGID bit rather than testing various parts
of the cred structures.  this prevents a previously set[gu]id process
from generating a core file.
1996-10-18 08:39:34 +00:00