summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* - GC a few more hand-rolled 'abs' macros.mdodd2003-01-154-35/+14
| | | | - GC a few hand-rolled min()/max() macros while I'm here.
* - Add inline functions for {ll,l,}abs() to libkern.mdodd2003-01-154-33/+4
| | | | - Remove hand rolled abs() functions.
* Suspend/resume support (mostly for MiniPCI Prism2.5 boards).mdodd2003-01-143-2/+36
| | | | Reviewed by: imp
* Some USB devices are not prepared to deal with a single byte stringjoe2003-01-141-2/+8
| | | | | | | | | | | descriptor request, which usbd_get_string_desc() uses to get the length of a descriptor. One device for instance returns a full 8 byte long packet instead which confuses the rest of the stack and leads to the USB port being reset. The fix is to instead request two bytes, but not to complain if we only get one. Submitted by: kan MFC after: 3 days
* Add a very simple but functional GEOM mirror class.phk2003-01-143-0/+252
| | | | | This is committed more as an instructive tool than as a production facility, but this will change over time.
* Add missing #includedillon2003-01-141-0/+1
| | | | Submitted by: "Sam Leffler" <sam@errno.com>
* Now that we have non-geom_disk based drivers, we need to cover for those,phk2003-01-141-3/+4
| | | | | | in case they return EOPNOTSUPP on an ioctl. Found by: jhb
* For the cpu throttling message, s/enabled/availablenjl2003-01-141-1/+2
| | | | Requested by: many
* Introduce the ability to flag a sysctl for operation at secure level 2 or 3dillon2003-01-143-5/+17
| | | | | | | | | | | | in addition to secure level 1. The mask supports up to a secure level of 8 but only add defines through CTLFLAG_SECURE3 for now. As per the missif in the log entry for 1.11 of ip_fw2.c which added the secure flag to the IPFW sysctl's in the first place, change the secure level requirement from 1 to 3 now that we have support for it. Reviewed by: imp With Design Suggestions by: imp
* Remove bogus locking from dc(4). Instead, move interrupt allocationnjl2003-01-142-84/+68
| | | | | | | | and ether_ifattach() to end. This fixes a "could sleep" case and simplifies error exit cases as well. Also be sure to set errno and clean up resources in !mac error case. Tested by: Ryan Beasley
* Don't call destroy_dev it a channel has children.cognet2003-01-141-1/+1
| | | | | | | | | | vchan creation doesn't lead to /dev entry creation if the new vchan is the first child of a channel, This fix a panic that happens when loading a sound driver module, creating vchans and unloading the driver. Approved by: cg MFC after: 3 days
* Save 4 more bytes by not initializing opts to 0. This moves it fromimp2003-01-142-2/+2
| | | | | | the data section to the bss section givig us initialization for free. Noticed by: bde
* Make the base pcib_route_interrupt method available to other pci-pci bridgebenno2003-01-142-2/+2
| | | | | | | | | sub-classes. This allows the powerpc kernel to build again. Forgotten by: benno Spotted by: grehan
* Fix for FreeBSD-4.simokawa2003-01-141-15/+4
| | | | - Protect whole fw_tbuf_update() with splfw().
* - Update vm_pageout_deficit using atomic operations. It's a simplealc2003-01-143-7/+7
| | | | | counter outside the scope of existing locks. - Eliminate a redundant clearing of vm_pageout_deficit.
* Make vm_pageout_page_free() static.alc2003-01-142-2/+2
|
* Since reseting the SCSI busses via the passthrough interface usuallyscottl2003-01-131-7/+12
| | | | | | | | | confuses the controller, tell CAM not to do it. Also report the correct error condition to CAM when it tries to probe a target that doesn't exists. This should make the CAM interface less risky to use. MFC After: 3 days
* It is possible for an active aio to prevent shared memory from beingdillon2003-01-137-27/+32
| | | | | | | | | | | | | dereferenced when a process exits due to the vmspace ref-count being bumped. Change shmexit() and shmexit_myhook() to take a vmspace instead of a process and call it in vmspace_dofree(). This way if it is missed in exit1()'s early-resource-free it will still be caught when the zombie is reaped. Also fix a potential race in shmexit_myhook() by NULLing out vmspace->vm_shm prior to calling shm_delete_mapping() and free(). MFC after: 7 days
* Apply bandaid to bring svr4_sys_waitsys() in line with exit1(). Thisdillon2003-01-131-1/+4
| | | | | | routine really need to be gutted and merged with exit1(). Reviewed by: jhb
* Even if the permissions deny it, a process should be allowed tophk2003-01-131-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | access its controlling terminal. In essense, history dictates that any process is allowed to open /dev/tty for RW, irrespective of credential, because by definition it is it's own controlling terminal. Before DEVFS we relied on a hacky half-device thing (kern/tty_tty.c) which did the magic deep down at device level, which at best was disgusting from an architectural point of view. My first shot at this was to use the cloning mechanism to simply give people the right tty when they ask for /dev/tty, that's why you get this, slightly counter intuitive result: syv# ls -l /dev/tty `tty` crw--w---- 1 u1 tty 5, 0 Jan 13 22:14 /dev/tty crw--w---- 1 u1 tty 5, 0 Jan 13 22:14 /dev/ttyp0 Trouble is, when user u1 su(1)'s to user u2, he cannot open /dev/ttyp0 anymore because he doesn't have permission to do so. The above fix allows him to do that. The interesting side effect is that one was previously only able to access the controlling tty by indirection: date > /dev/tty but not by name: date > `tty` This is now possible, and that feels a lot more like DTRT. PR: 46635 MFC candidate: could be.
* We can get past here on a normal vnode as well, so use VOP_STRATEGY if so.phk2003-01-131-1/+4
|
* Fix interactive booting:imp2003-01-132-4/+8
| | | | | | | | | | | | | o Revision 1.38 introduced the -n flag. It conflicted with the RB_BOOTINFO flag, so was in effect always on. Change the -n flag to be bit 0x1c instead of 0x1f. This also had the consequence that a mal-formed /boot.config would render the system unbootable because the user was unable to enter anything at all on the command line. o Remove the initialization of opt to be RB_BOOTINFO since we filter that bit out and do not otherwise use it. Reviewed by: jhb MFC after: 3 days
* OK Ok, so I didn't check the NO_GEOM case for the final version...phk2003-01-131-3/+3
| | | | Stumbled on by: bde
* Add Realtek ALC650 id.orion2003-01-131-0/+1
| | | | | Submitted by: "Mikko S. Hyvarinen" <morphy@morphy.iki.fi> MFC after: 5 days
* Add nForce2 device id.orion2003-01-131-0/+4
| | | | | Submitted by: "Mikko S. Hyvarinen" <morphy@morphy.iki.fi> MFC after: 5 days
* Enable the new h0h0magic code which on GEOM kernels make the md(4)phk2003-01-131-3/+0
| | | | driver a _real_ GEOM driver.
* Minimal fix for DV part.simokawa2003-01-134-32/+84
| | | | | | | | | - Don't panic on contigmalloc failure. - Calculate timestamp by feedforward rather than feedback which depends on unreliable interrupt timing. - Overwrite timestamp in CIP header correctly. - Add debug code for timestamp synchronization. - Add comments.
* Merge big endian and little endian case.simokawa2003-01-131-35/+42
| | | | Fill fdf bit fields and others.
* style(9) fixes, mostly add parens around return arguments.alfred2003-01-131-63/+65
|
* Always issue ioctls as BIO_GEATTR requests. The direction of data copies onphk2003-01-131-4/+6
| | | | | | | ioctls are no reliable indication of the ioctls "set" or "get" nature or if such simplistic categories can even be applied. MFC candidate: boot0cfg issue.
* Fix NewReno.hsu2003-01-135-89/+94
| | | | Reviewed by: Tom Henderson <thomas.r.henderson@boeing.com>
* Add a mutex around the per unit bioqueue.phk2003-01-131-12/+28
| | | | | | | | Only grab giant in the per unit kthread for SWAP and VNODE backed devices. Initialize the bioq before the kthread gets a chance to study it. Don't lock Giant in mddone_swap, we shouldn't need it.
* Remove four members of struct nameidata which have been commentedphk2003-01-131-13/+0
| | | | | | | out since rev 1.1 (24 may 1994) of this file. Add a nail to the K&R coffin by removing the #ifdef'ed K&R function declaration for NDINIT.
* Remove g_silence(). It does not do anything anymore.phk2003-01-133-15/+1
|
* Fix typo.phk2003-01-131-1/+1
|
* Add opt_geom.h to the list.phk2003-01-131-1/+1
|
* Remove the printf which announces the creation of malloc disks: it isphk2003-01-131-1/+0
| | | | | | | | inconsistent when we do not do it for swap or vnode. We still printf for preloaded disks because of the weak debugging options people have in embedded/tiny environments where this is usually used.
* Fixed typo and style.nyan2003-01-131-2/+2
| | | | Submitted by: Toru Morimoto <too@os.gulf.or.jp>
* Quirk for Sony USB disk-on-key device.njl2003-01-131-0/+8
| | | | | | PR: kern/46386 Submitted by: dillon MFC after: 3 days
* Enable rl(4). It is now fully working using busdma.obrien2003-01-131-1/+1
|
* Regenerateobrien2003-01-131-1/+3
|
* - Unbreak world. I did not notice that libkvm was still used in some placesjeff2003-01-132-7/+6
| | | | | | to access the pctcpu. This will have to be sorted out more later as the new scheduler requires a procedural interface for this data. A more complete solution will follow.
* Correct an off-by-one error in the calculation of the number of interruptbenno2003-01-131-1/+1
| | | | resources we're managing.
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-1347-233/+203
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Make vm_page_alloc() return PG_ZERO only if VM_ALLOC_ZERO is specified.alc2003-01-121-4/+5
| | | | | | | | | | The objective being to eliminate some cases of page queues locking. (See, for example, vm/vm_fault.c revision 1.160.) Reviewed by: tegge (Also, pointed out by tegge that I changed vm_fault.c before changing vm_page.c. Oops.)
* Add code to make md(4) a GEOM device driver instead of relying inphk2003-01-121-4/+134
| | | | | | the disk mini-layer. This is currently not enabled.
* Partial support for the nVidia nForce2 chipset's on-board Broadcom/Altima PHYobrien2003-01-124-0/+7
| | | | | | | and 3com MAC. Specifications for the Altima PHY are available at: http://www.altimacom.com/products/ac101L.html Submitted by: Mikko S. Hyvarinen <morphy@morphy.iki.fi>
* - Move ke_pctcpu and ke_cpticks into the scheduler specific datastructure.jeff2003-01-122-17/+30
| | | | | This will prevent access through mechanisms other than the published interfaces.
* Shift things around a bit in preparation for future evilness.phk2003-01-121-43/+48
|
* Allowing nent < 0 in aio_suspend() and lio_listio() is just asking fortjr2003-01-121-2/+2
| | | | trouble. Return EINVAL instead.
OpenPOWER on IntegriCloud