summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* In vrele() we can actually have a VCHR with v_rdev == NULL if wephk2002-10-251-1/+1
| | | | came from the bottom of addaliasu(). Don't panic.
* fix style-ojulian2002-10-252-2/+2
|
* More work on the interaction between suspending and sleeping threads.julian2002-10-254-48/+66
| | | | | | Also clean up some code used with 'single-threading'. Reviewed by: davidxu
* Use the correct values for LDBL_*. Libc doesn't completely supportimp2002-10-252-18/+20
| | | | | | | | | | | | | | long doubles at the moment (printf truncates them to doubles). However, long doubles to appear to work to the ranges listed in this commit on both -stable (4.5) and -current. There may be some slight rounding issues with long doubles, but that's an orthogonal issue to these constants. I've had this in my local tree for 3 months, and in my company's local tree for 15 months with no ill effects. Obtained from: NetBSD Not likely to like it: bde
* Minor cleanups.jake2002-10-251-3/+3
| | | | | - use fields in sysent instead of PS_STRINGS - set TSTATE_PRIV in frame0.tf_tstate for what its worth
* Within ufs, the ffs_sync and ffs_fsync functions did not alwaysmckusick2002-10-256-15/+37
| | | | | | | | | | | | check for and/or report I/O errors. The result is that a VFS_SYNC or VOP_FSYNC called with MNT_WAIT could loop infinitely on ufs in the presence of a hard error writing a disk sector or in a filesystem full condition. This patch ensures that I/O errors will always be checked and returned. This patch also ensures that every call to VFS_SYNC or VOP_FSYNC with MNT_WAIT set checks for and takes appropriate action when an error is returned. Sponsored by: DARPA & NAI Labs.
* fix typo.davidxu2002-10-252-2/+4
|
* Extract out KSE specific code from machine specific codejulian2002-10-248-129/+105
| | | | | | | | so that there is ony one copy of it. Fix that one copy so that KSEs with no mailbox in a KSE program are not a cause of page faults (this can legitmatly happen). Submitted by: (parts) davidxu
* Oops, forgot to commit this file. This is part of the fixmux2002-10-241-0/+2
| | | | for ipfw2 panics on sparc64.
* Use a better test to prevent tasting geom.ctl so we don't screw thephk2002-10-241-1/+1
| | | | regression tests.
* Fix the spechash lock order reversal by keeping an updated sumphk2002-10-243-19/+30
| | | | | | | of v_usecount in the dev_t which vcount() can return without locking any vnodes. Seen by: jhb
* Make sure GEOM has stopped rattling the disks before we try to mountphk2002-10-241-0/+4
| | | | the root filesystem, this may be implicated in the PC98 issue.
* Don't taste the first provider, it's /dev/geom.ctl and it's not goingphk2002-10-241-1/+2
| | | | to taste like anything we like anyway.
* Oops, I missed a few changes in 'device acpica' -> 'device acpi' change.jhb2002-10-242-6/+6
| | | | Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>
* Rename 'device acpica' to 'device acpi'.jhb2002-10-245-153/+153
| | | | Approved by: msmith, iwasaki
* Fix ipfw2 panics on 64-bit platforms.mux2002-10-241-6/+2
| | | | | | | | | | Quoting luigi: In order to make the userland code fully 64-bit clean it may be necessary to commit other changes that may or may not cause a minor change in the ABI. Reviewed by: luigi
* src and dst address were erroneously swapped in SRC_SET and DST_SETluigi2002-10-241-2/+2
| | | | commands. Use the correct one. Also affects ipfw2 in -stable.
* Don't try to be cute and save a call/return by implementing a degeneratephk2002-10-241-5/+1
| | | | vrele() inline.
* Provide kernel options for the various MAC policy modules so thatrwatson2002-10-243-1/+22
| | | | | | | | | | they may be statically linked into the kernel. Note that statically linked modules, unlike dynamically linked modules, get INVARIANTS, so if there are INVARIANTS failures, you'll bump into them rather than not. Add the options to NOTES. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* device rc no longer requires a count since jhb newbussified the rcrwatson2002-10-241-1/+1
| | | | device driver.
* respect TDF_SINTR, also for SINGLE_NO_EXIT threading mode, if a threaddavidxu2002-10-242-12/+12
| | | | was already suspended, do nothing.
* Add new loader tunable hw.acpi.ec.event_driven so that we controliwasaki2002-10-241-1/+4
| | | | | | EcWaitEventIntr()'s behavior. Some EC controllers require this for working properly (including sleep/wakeup).
* Fix kernel build on sparc64 in the IPDIVERT case.mux2002-10-241-1/+1
|
* don't forget to remove kse from idle queue.davidxu2002-10-242-0/+4
|
* Move thread related code from kern_proc.c to kern_thread.c.julian2002-10-244-320/+1010
| | | | | | | | | | Add code to free KSEs and KSEGRPs on exit. Sort KSE prototypes in proc.h. Add the missing kse_exit() syscall. ksetest now does not leak KSEs and KSEGRPS. Submitted by: (parts) davidxu
* - Now that uma_zalloc_internal is not the fast path don't be so fussy aboutjeff2002-10-241-179/+198
| | | | | | | | | | | extra function calls. Refactor uma_zalloc_internal into seperate functions for finding the most appropriate slab, filling buckets, allocating single items, and pulling items off of slabs. This makes the code significantly cleaner. - This also fixes the "Returning an empty bucket." panic that a few people have seen. Tested On: alpha, x86
* o Fix a size calculation based on a 8KB page, while under EFImarcel2002-10-245-33/+71
| | | | | | | | | | | | pages are 4KB. o As a second order fix, don't assume we have enough space after the bootinfo block left in a page to hold the memory map. o A third order fix as that we removed the assumption that a bootinfo block fits in a single 8KB page. PR: ia64/39415 submitted by: Espen Skoglund <esk@ira.uka.de>
* The rc driver is not needed for pc98.nyan2002-10-241-1/+0
|
* Build the following modules on ia64 as well:marcel2002-10-241-1/+20
| | | | | ar, asr, bktr, cardbus, cbb, ep, exca, hea, hfa, ipfilter, lomac, netgraph, pccard, rc, sound, sppp, vinum.
* - Move the destructor calls so that they are not called with the zone lockjeff2002-10-241-5/+6
| | | | | | | | held. This avoids a lock order reversal when destroying zones. Unfortunately, this also means that the free checks are not done before the destructor is called. Reported by: phk
* Remove gcc-specific optimization/debugging CFLAGSkris2002-10-241-1/+1
|
* Commit of Makefile missed in earlier pass.rwatson2002-10-241-0/+9
| | | | Submitted by: kuriyama
* Unbreak the automatic remapping of an INADDR_ANY destination addressiedowse2002-10-241-5/+4
| | | | | | | | | | | | | | | to the primary local IP address when doing a TCP connect(). The tcp_connect() code was relying on in_pcbconnect (actually in_pcbladdr) modifying the passed-in sockaddr, and I failed to notice this in the recent change that added in_pcbconnect_setup(). As a result, tcp_connect() was ending up using the unmodified sockaddr address instead of the munged version. There are two cases to handle: if in_pcbconnect_setup() succeeds, then the PCB has already been updated with the correct destination address as we pass it pointers to inp_faddr and inp_fport directly. If in_pcbconnect_setup() fails due to an existing but dead connection, then copy the destination address from the old connection.
* Provide a simple sample labeled access control policy, mac_partition.rwatson2002-10-232-0/+337
| | | | | | | | | | | | | | This policy can be loaded dynamically, and assigns each process a partition number, as well as permitting processes to operate outside the partition. Processes contained in a partition can only "see" processes inside the same partition, so it's a little like jail. The partition of a user can be set using the label mechanisms in login.conf. This sample policy is a good starting point for developers wanting to learn about how to produce labeled policies, as it labels only one kernel object, the process credential. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Provide a simple sample labeled access control policy, mac_partition.rwatson2002-10-231-0/+1
| | | | | | | | | | | | | | | | | | This policy can be loaded dynamically, and assigns each process a partition number, as well as permitting processes to operate outside the partition. Processes contained in a partition can only "see" processes inside the same partition, so it's a little like jail. The partition of a user can be set using the label mechanisms in login.conf. This sample policy is a good starting point for developers wanting to learn about how to produce labeled policies, as it labels only one kernel object, the process credential. PR: Submitted by: Reviewed by: Approved by: Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* We must be careful to avoid recursive copy-on-write faults whenmckusick2002-10-231-1/+14
| | | | | | trying to clean up during disk-full senarios. Sponsored by: DARPA & NAI Labs.
* We always need sys/pcpu.h now, not just for the SMP case.jhb2002-10-231-1/+1
| | | | Approved by: jake
* Remove NO_GEOM from sparc64.phk2002-10-231-2/+0
| | | | Reminded by: jhb
* - New-bussify the rc(4) device driver.jhb2002-10-239-2220/+620
| | | | | | | | | | | | - Add detach support to the driver so that you can kldunload the module. Note that currently rc_detach() fails to detach a unit if any of its child devices are open, thus a kldunload will fail if any of the tty devices are currently open. - sys/i386/isa/ic/cd180.h was moved to sys/dev/ic/cd180.h as part of this change. Requested by: rwatson Tested by: rwatson
* Don't send/recieve packets when the interface is down.simokawa2002-10-231-0/+9
|
* npx(4) doesn't honor port hints so don't provide an example one.jhb2002-10-231-1/+0
|
* - Dequeue OCBs more safely in sbp_abort_all_ocbs().simokawa2002-10-231-15/+24
|
* MFi386: revision 1.10nyan2002-10-231-2/+0
|
* Only define SEEK_{SET,CUR,END} if not already defined (by <stdio.h>)phk2002-10-231-0/+2
|
* Whitespace cleanup.des2002-10-232-20/+18
|
* Very minor whitespace/style nit.markm2002-10-232-4/+2
|
* Put parentheses around function-like macros to shut up warnings.markm2002-10-231-5/+5
|
* Kill EOL spaces.maxim2002-10-231-24/+23
| | | | | Approved by: luigi MFC after: 1 week
* Use syslog for messages about dropped sessions, do not flood a console.maxim2002-10-231-1/+1
| | | | | | Suggested by: Eugene Grosbein <eugen@kuzbass.ru> Approved by: luigi MFC after: 1 week
* Missplaced FREE_LOCK causes a panic when hit while taking a snapshot.mckusick2002-10-231-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud