Commit Graph

51988 Commits

Author SHA1 Message Date
ache
2fe000dc21 /modules -> /boot/kernel 2000-09-06 15:55:31 +00:00
ache
1f711bed03 Add /boot/kernel/ 2000-09-06 15:34:58 +00:00
sheldonh
73e8d2256c Add ftp.no.freebsd.org.
PR:		21068
Submitted by:	Martin Eggen <martin@copyleft.no>
2000-09-06 13:16:58 +00:00
rwatson
470afbb19d o Synchronize vaccess() capability access control checks with TrustedBSD
tree.

Obtained from:	TrustedBSD Project
2000-09-06 12:18:24 +00:00
phk
de95b6cc45 Add refcounts to the "global" DEVFS inode slots, this allows us
to recycle inodes after a destroy_dev() but not until all mounts
have picked up the change.

Add support for an overflow table for DEVFS inodes.  The static
table defaults to 1024 inodes, if that fills, an overflow table
of 32k inodes is allocated.  Both numbers can be changed at
compile time, the size of the overflow table also with the
sysctl vfs.devfs.noverflow.

Use atomic instructions to barrier between make_dev()/destroy_dev()
and the mounts.

Add lockmgr() locking of directories for operations accessing or
modifying the directory TAILQs.

Various nitpicking here and there.
2000-09-06 11:26:43 +00:00
phk
619661b238 Introduce atomic_cmpset_int() and atomic_cmpset_long() from SMPng a
few hours earlier than the rest.

The next DEVFS commit needs these functions.

Alpha versions by: dfr
i386 versions by: jakeb

Approved by:    SMPng
2000-09-06 11:21:14 +00:00
obrien
3e05ecd241 The default is for 3rd party kernel modules to live in /boot/modules
rather than /modules.
2000-09-06 10:27:26 +00:00
obrien
bce351acf6 DESTDIR'ify the device.hints checking code. 2000-09-06 09:27:25 +00:00
obrien
c64619ecf3 I forgot the leading `DESTDIR' before the kernel directory. 2000-09-06 09:14:18 +00:00
ume
4638eba7c9 Avoid doing rtsol to psuedo interface.
PR:		bin/21062
2000-09-06 07:39:55 +00:00
des
6921cc4c03 Reintroduce functionality and error checks that were boneheadedly removed
in the previous commit. Pass me the pointy hat.

PR:		bin/21061
2000-09-06 07:28:02 +00:00
obrien
20fb3b35a3 The kernel is now known as `kernel.ko' and it and its matching modules
live in ``/boot/kernel/''.

Submitted by:	Hisashi Hiramoto <hiramoto@phys.chs.nihon-u.ac.jp>
2000-09-06 06:22:20 +00:00
marcel
bc4f92e3d1 When sigaltstack is called with a stack size that's not smaller
than LINUX_MINSIGSTKSZ but smaller than MINSIGSTKSZ, cheat and
pass MINSIGSTKSZ to the kernel. This is a workaround.

Submitted through: nate
2000-09-06 06:08:54 +00:00
grog
55c6509d1a Bring LDADD in line with DPADD.
Reported by:	bde
2000-09-06 04:18:16 +00:00
billf
d19ea3c7f7 1. IP_FW_F_{UID,GID} are _not_ commands, they are extras. The sanity checking
for them does not belong in the IP_FW_F_COMMAND switch, that mask doesn't even
apply to them(!).

2. You cannot add a uid/gid rule to something that isn't TCP, UDP, or IP.

XXX - this should be handled in ipfw(8) as well (for more diagnostic output),
but this at least protects bogus rules from being added.

Pointy hat:	green
2000-09-06 03:10:42 +00:00
bp
3a21abb34d Ignore ELF files with 'interpreter' section because KLDs doesn't contain it.
Reviewed by:	peter
2000-09-06 02:21:43 +00:00
obrien
ff5ea8679f Fix the kernel default load from "/boot/modules" to "/boot/kernel".
Reported by:	dcs
2000-09-05 23:10:46 +00:00
obrien
6a44e2a875 The kernel is now known as `kernel.ko' and it and its matching modules
live in ``/boot/kernel/''.
2000-09-05 22:37:46 +00:00
msmith
98b760a672 Teach the NFS && NFS_ROOT case how to pick up information left by the
PXE loader, and use this to build the nfs_diskless structure.
2000-09-05 22:34:11 +00:00
msmith
7f798022df Fix a bug which prevents parsing this Makefile without having a
previously-built loader binary elsewhere.
2000-09-05 22:33:07 +00:00
msmith
28949fdd0a Export the salient configuration items in a non-pxe-specific namespace
to allow commonality between varying platforms.  This is a step
towards parsing the diskless configuration information with MI code
inside the kernel.

Export the interface hardware address to the kernel, so that it is possible
to determine the boot interface with certainty.

Export the NFS filehandle for the root mount to the kernel, so that the
kernel does not need to perform a mount RPC call.
2000-09-05 22:32:31 +00:00
msmith
5d1d135a13 Don't scan for the "right" network interface by shooting in the dark.
Assume that the nfs_diskless structure is correctly set up; the provider
ought to be getting it right.
2000-09-05 22:29:36 +00:00
msmith
d813a6e8df Expose the NFS root node, so that an evil consumer can use it to get the
NFS filehandle for the root mount.
2000-09-05 22:11:41 +00:00
truckman
a233f9bd24 Remove uidinfo hash table lookup and maintenance out of chgproccnt() and
chgsbsize(), which are called rather frequently and may be called from an
interrupt context in the case of chgsbsize().  Instead, do the hash table
lookup and maintenance when credentials are changed, which is a lot less
frequent.  Add pointers to the uidinfo structures to the ucred and pcred
structures for fast access.  Pass a pointer to the credential to chgproccnt()
and chgsbsize() instead of passing the uid.  Add a reference count to the
uidinfo structure and use it to decide when to free the structure rather
than freeing the structure when the resource consumption drops to zero.
Move the resource tracking code from kern_proc.c to kern_resource.c.  Move
some duplicate code sequences in kern_prot.c to separate helper functions.
Change KASSERTs in this code to unconditional tests and calls to panic().
2000-09-05 22:11:13 +00:00
bmah
fe90e00905 Note the MFC of ATA100 support into the ata(4) driver and update the
list of ATA controllers currently supported.
2000-09-05 21:36:50 +00:00
phk
c39b8c82d2 Move extern declaration of dead_vnodeop_p to a .h file.
Remove race condition in vn_isdisk().
2000-09-05 21:09:56 +00:00
phk
ebc108005b Register resources in a more opportune order for the hardware. 2000-09-05 21:08:48 +00:00
cg
a4ed6d9092 initial support for multiple ac97 codecs 2000-09-05 21:08:01 +00:00
cg
7f30b13f90 add detach support 2000-09-05 21:06:11 +00:00
cg
e8326f6d5d allow a null setdir implementation 2000-09-05 21:00:45 +00:00
cg
b693bd58f3 be more verbose about failed unload attempts 2000-09-05 20:58:51 +00:00
cg
b1c395dcc2 tidy up a little, add a mask for 32bit formats 2000-09-05 20:56:31 +00:00
ache
fc40ba3d2e Document %-macros and NLSPATH better. 2000-09-05 19:14:34 +00:00
alc
0b22196e38 Make the basic AIO functions, i.e., aio_read() and aio_write(),
work on the Alpha, at least, for the aio_qphysio() case.  Specifically,
fix an unaligned access fault.
2000-09-05 18:58:07 +00:00
imp
2b6105ea4e MFNetBSD:
1.6 2000/04/12 21:07:55 scw
	Add support for the SOHOware PCMCIA Ethernet card, model ND5100-E.
	This seems to be a re-badged NDC (National Datacomms. Corp) card.
	It needs a quirk entry due to lack of manufacturer tuple in the CIS.
	For some reason, the 'Tx/Rx' LED on the connector module is inverted
	such that it is off during network activity...
2000-09-05 18:25:49 +00:00
wilko
6696bd829c correct silly typo..
Submitted by:	"Koster, K.J." <K.J.Koster@kpn.com>
2000-09-05 17:17:36 +00:00
dcs
b5a4c7de28 Good thing about these examples is that no one uses them, so they can
stay broken for months without anyone noticing.

The boot-conf command was changed as to reproduce the behavior of builtin
loader words precisely. As a result, it now always need an argument, possibly
0 indicating that no other arguments are being passed. This broke in a
non-deterministic way (ie, it could go on working as if everything was fine).
2000-09-05 16:30:09 +00:00
gehenna
2f68ae9022 Regen. 2000-09-05 16:01:34 +00:00
gehenna
e5dc2a66a5 Add product ID (Prolific ATAPI-4 Bridge Controller).
Reported by: "K.Sumitani" <sumitani@bd2.hnes.nec.co.jp>
2000-09-05 16:00:55 +00:00
ache
bd948f52a6 Fully implement NLSPATH processing as described in SUSv2 2000-09-05 14:04:21 +00:00
n_hibma
c68cec93f2 Regen. 2000-09-05 12:28:33 +00:00
n_hibma
46c7daf7f4 Fix typo's 2000-09-05 12:26:37 +00:00
n_hibma
1af81019b2 Loads of scanner Ids. 2000-09-05 12:24:05 +00:00
phantom
8a7b2df0a8 Oops! don't set errno to ENOMEM explicitly if malloc() failed.
Found by:	ache
2000-09-05 12:23:08 +00:00
msmith
bcc7b0c19b Implement readahead buffering for non-raw files. This drastically improves
the efficiency of byte-by-byte read operations on filesystems not already
supported by the block cache (especially NFS).

This should be a welcome change for users booting via PXE, as the loader
now reads its startup files almost instantly, instead of taking tens of
seconds.
2000-09-05 09:52:50 +00:00
sheldonh
94d5254f47 Add ZTIA001 - Zoom Internal V90 Faxmodem.
PR:		21028
Submitted by:	Glenn Johnson <glennpj@charter.net>
2000-09-05 09:42:47 +00:00
peter
4e03b9cb0b Remove the SIGSYS handler and wrapper around the __getcwd() syscall.
It was kinda silly since the sigaction() syscall that it used to setup
the handler is more recent than __getcwd(), therefore it was useless
as the wrapper would have died before even getting as far as __getcwd(2).

Reminded by:	bde
2000-09-05 09:35:36 +00:00
bp
ac7a6668ce Various cleanups towards make nullfs functional (it is still broken
at this point):

Replace all '#ifdef DEBUG' with '#ifdef NULLFS_DEBUG' and add NULLFSDEBUG
macro.

Protect nullfs hash table with lockmgr.

Use proper order of operations when freeing mnt_data.

Return correct fsid in the null_getattr().

Add null_open() function to catch MNT_NODEV (obtained from NetBSD).

Add null_rename() to catch cross-fs rename operations (submitted by
Ustimenko Semen <semen@iclub.nsu.ru>)

Remove duplicate $FreeBSD$ tags.
2000-09-05 09:02:07 +00:00
sheldonh
b81d376eb9 Add acap, as per IANA.
PR:		20990
Submitted by:	Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2000-09-05 08:24:01 +00:00
bp
108fddce36 Get rid from the __P() macros.
Encouraged by:	peter
2000-09-05 07:54:39 +00:00