summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Support the DPF (start dependent function) resource type in parsing _PRS.Nate Lawson2004-03-181-10/+21
| | | | | | | | | This should fix this error people get attaching cardbus controllers: pcib0: _PRS resource entry has unsupported type 2 Notes: svn path=/head/; revision=127156
* Regen after 1.169 of usbdevs.Maxim Sobolev2004-03-182-2/+23
| | | | Notes: svn path=/head/; revision=127154
* Add support for Crystalfontz CFA-632, CFA-633 and CFA-634, all of themMaxim Sobolev2004-03-182-0/+9
| | | | | | | | | | | | | | are based on the same USB->COM bridge, but have different product IDs. PR: Submitted by: Reviewed by: Approved by: Obtained from: http://www.tnpi.biz/computing/freebsd/crystalfontz.shtml MFC after: 3 days Notes: svn path=/head/; revision=127153
* Cleanup hints, given that no hammer machine have (nor ever will have)David E. O'Brien2004-03-181-47/+0
| | | | | | | | | ISA slots. Submitted by: Peter Notes: svn path=/head/; revision=127151
* Revise socow_iodone() in light of recent sf_buf changes. Specifically,Alan Cox2004-03-171-5/+9
| | | | | | | | | use sf_buf_free() instead of sf_buf_mext() to consolidate all actions that require the page queues lock in one critical section. While I'm here remove unnecessary splvm() and splx() calls. Notes: svn path=/head/; revision=127150
* Eliminate bogus usage of WI_RSSI_TO_DBM(). Not only does it boguslyBrian Feldman2004-03-171-4/+2
| | | | | | | | | clip/destroy the dB value contained in the wi(4)'s receive frames, it doesn't match with the flag set in the radiotap header (unperturbed dB versus dBm). Notes: svn path=/head/; revision=127148
* Fix border error to allow systems that specify 100 for latency also useNate Lawson2004-03-171-2/+2
| | | | | | | | | | C2 and 1000 to use C3. Submitted by: Bruno Ducrot <ducrot@poupinou.org> Tested by: Scott Lambert <lambert@lambertfam.org> Notes: svn path=/head/; revision=127147
* sync comment with i386's isa.c.. This removes a comment that is YEARSJohn-Mark Gurney2004-03-174-12/+4
| | | | | | | old... Notes: svn path=/head/; revision=127146
* Style(9) round for the pf kernel parts. Mostly #if defined() -> #ifdefMax Laier2004-03-1710-323/+283
| | | | | | | | | | | Also set HOOK_HACK to true (remove the related #ifdef's) as we have the hooks in the kernel this was missed during the merge from the port. Noticed by: Amir S. (for the HOOK_HACK part) Approved by: bms(mentor) Notes: svn path=/head/; revision=127145
* Add a comment with an explanation why we don't report EPIPE errors onPawel Jakub Dawidek2004-03-171-0/+5
| | | | | | | | | nfs sockets. Requested by: ru Notes: svn path=/head/; revision=127144
* - Replace wait1() with a kern_wait() function that accepts the pid,John Baldwin2004-03-177-190/+105
| | | | | | | | | | | | | | | | | | options, status pointer and rusage pointer as arguments. It is up to the caller to copyout the status and rusage to userland if needed. This lets us axe the 'compat' argument and hide all that functionality in owait(), by the way. This also cleans up some locking in kern_wait() since it no longer has to drop locks around copyout() since all the copyout()'s are deferred. - Convert owait(), wait4(), and the various ABI compat wait() syscalls to use kern_wait() rather than wait1() or wait4(). This removes a bit more stackgap usage. Tested on: i386 Compiled on: i386, alpha, amd64 Notes: svn path=/head/; revision=127140
* remove stale comment since these limits have been increased YEARS ago...John-Mark Gurney2004-03-171-3/+1
| | | | Notes: svn path=/head/; revision=127139
* Don't report EPIPE errors on nfs sockets. These can be due to idle tcpPawel Jakub Dawidek2004-03-171-2/+5
| | | | | | | | | mounts which will be closed by netapp, solaris, etc. if left idle too long. Obtained from: NetBSD Notes: svn path=/head/; revision=127137
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-17267-1125/+1090
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Add bus_alloc_resource_any(9), which does bus_alloc_resource() with theNate Lawson2004-03-171-0/+6
| | | | | | | | | | | appropriate default values. Document it in the manpage. Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Abstains: bde Notes: svn path=/head/; revision=127133
* Fix information leakage.Pawel Jakub Dawidek2004-03-171-1/+6
| | | | | | | | | | | | | | | | Without this fix it is possible to cheat policies like: - sysctl security.bsd.see_other_[gu]ids=0, - mac_seeotheruids(4), - jail(2) and get full processes list with their arguments. This problem exists from revision 1.62 of kern_proc.c when it was introduced. Reviewed by: nectar, rwatson. Notes: svn path=/head/; revision=127123
* Make ddp_ports static, as it's not used outside of ddp_usrreq.c.Robert Watson2004-03-173-3/+2
| | | | | | | | Inspired by: Day spent hiking to hot springs in Taiwan Powered by: Asia BSDCon 2004 Notes: svn path=/head/; revision=127122
* Adjust the number of processes waiting on a semaphore properly if we'reColin Percival2004-03-171-6/+12
| | | | | | | | | | | woken up in the middle of sleeping. PR: misc/64347 Reviewed by: tjr MFC after: 7 days Notes: svn path=/head/; revision=127108
* Adjust $FreeBSD$'s.David E. O'Brien2004-03-172-5/+1
| | | | Notes: svn path=/head/; revision=127103
* Remove tun_proc; replace with tun_pid. tun_proc pointer may be staleRobert Watson2004-03-171-7/+14
| | | | | | | | | | | as the process that opens tun_softc can exit before the file descriptor is closed. Taiwan experience provided by: keichii Crashing breakers provided by: Chia-liang Kao <clkao@clkao.org> Notes: svn path=/head/; revision=127099
* Add tap_mtx to tap_softc in order to protect per-softc variablesRobert Watson2004-03-172-2/+44
| | | | | | | | | | (tap_pid, tap_flags). if_tap should now be entirely MPSAFE. Committed from: Bamboo house by ocean in Taiwan Tropical paradise provided by: Chia-liang Kao <clkao@clkao.org> Notes: svn path=/head/; revision=127098
* Implement "arlconfig arlX quality".Max Khon2004-03-163-41/+103
| | | | | | | | | Man pages fixes. Submitted by: Stanislav A. Svirid <count@riss-telecom.ru> Notes: svn path=/head/; revision=127097
* Avoid doing bawrite to initialize inode block while holding cylinderAlexander Kabaev2004-03-161-1/+3
| | | | | | | | | | | | | group block locked. If filesystem has any active snapshots, bawrite can come back trying to allocate new snapshot data block from the same cylinder group and cause panic due to recursive lock attempt. PR: 64206 Reviewed by: mckusick Tested by: pjd Notes: svn path=/head/; revision=127095
* Run through indent(1) so I can read the code without getting a headache.Dag-Erling Smørgrav2004-03-1614-5317/+5233
| | | | | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent. Notes: svn path=/head/; revision=127094
* Add explicit dependency on "ether", since we use ether_ifattach().Maxime Henrion2004-03-161-0/+1
| | | | Notes: svn path=/head/; revision=127087
* Refactor the existing machine-dependent sf_buf_free() into a machine-Alan Cox2004-03-1610-127/+48
| | | | | | | | | | | | | dependent function by the same name and a machine-independent function, sf_buf_mext(). Aside from the virtue of making more of the code machine- independent, this change also makes the interface more logical. Before, sf_buf_free() did more than simply undo an sf_buf_alloc(); it also unwired and if necessary freed the page. That is now the purpose of sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used as a general-purpose emphemeral map cache. Notes: svn path=/head/; revision=127086
* Remove a bogus assertion and readd it in a more correct location. A threadJohn Baldwin2004-03-161-1/+1
| | | | | | | | | | | | might be enqueued on a sleep queue but not be asleep when the timeout fires if it is blocked on a lock trying to check for pending signals before going to sleep. In the case of fixing up the TDF_TIMEOUT race, however, the thread must be marked asleep. Reported by: kan (the bogus one) Notes: svn path=/head/; revision=127085
* Update the SiS support to distinguish older southbridges better.Søren Schmidt2004-03-162-9/+21
| | | | Notes: svn path=/head/; revision=127080
* Add powerpc to temporary fix. The new cpu device claims allPeter Grehan2004-03-161-2/+2
| | | | | | | | 'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe. Maybe the cpu device probe should be MD. Notes: svn path=/head/; revision=127074
* Move the arl to i386 only.Yoshihiro Takahashi2004-03-161-1/+1
| | | | Notes: svn path=/head/; revision=127071
* Don't use the pcic polling.Yoshihiro Takahashi2004-03-161-1/+1
| | | | Notes: svn path=/head/; revision=127070
* Remove the module reference for RAIDframeScott Long2004-03-161-1/+0
| | | | Notes: svn path=/head/; revision=127067
* Remove RAIDFrame. It hasn't worked since GEOM replaced the old diskScott Long2004-03-16138-42458/+0
| | | | | | | | | mini-layer. I don't have time to bing it forward into the GEOM world, and no one else has stepped forward to claim it. It'll be in the Attic for safe keeping for now. Notes: svn path=/head/; revision=127066
* Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.David Malone2004-03-167-26/+30
| | | | | | | | | | | Use kern_open() to implement creat() rather than taking the long route through open(). Mark creat as MPSAFE. While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the difference it will make. Notes: svn path=/head/; revision=127062
* Get ready to mark open, creat and nosys as MPSAFE.David Malone2004-03-161-3/+3
| | | | Notes: svn path=/head/; revision=127061
* Use vfs_nmount() to mount linprocfs filesystems in linux_mount();Tim J. Robbins2004-03-161-4/+21
| | | | | | | linprocfs doesn't support the old mount interface. Notes: svn path=/head/; revision=127059
* Make vfs_nmount() public. The Linux emulator needs this in order to mountTim J. Robbins2004-03-162-2/+2
| | | | | | | linprocfs filesystems. Notes: svn path=/head/; revision=127058
* Correct size argument passed to copyinstr() in linux_mount(): mntfromnameTim J. Robbins2004-03-161-2/+2
| | | | | | | and mntonname are both MNAMELEN characters long, not MFSNAMELEN. Notes: svn path=/head/; revision=127057
* Rename the wiredlen member of struct sysctl_req to validlen and alwaysDon Lewis2004-03-162-15/+17
| | | | | | | | | | | | | | | set it to avoid the need for a bunch of code that tests whether or not the lock member is set to REQ_WIRED in order to determine which length member should be used. Fix another bug in the oldlen return value code. Fix a potential wired memory leak if a sysctl handler uses sysctl_wire_old_buffer() and returns an EAGAIN error to trigger a retry. Notes: svn path=/head/; revision=127052
* Don't bother calling vslock() and vsunlock() if oldlen is zero.Don Lewis2004-03-161-7/+9
| | | | | | | | | | | | | | | If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set wiredlen to zero and return zero (success) so that the handler will operate according to sysctl(3): The size of the buffer is given by the location specified by oldlenp before the call, and that location gives the amount of data copied after a successful call and after a call that returns with the error code ENOMEM. The handler will return an ENOMEM error because the zero length buffer will overflow. Notes: svn path=/head/; revision=127050
* Regenerate.John Baldwin2004-03-159-14/+14
| | | | Notes: svn path=/head/; revision=127042
* - Mark ABI syscalls that call wait4() MP safe as recent changes toJohn Baldwin2004-03-153-5/+5
| | | | | | | | | the kernel wait4() made these all panic() implementations otherwise. - The i386 linux_ptrace() syscall is MP safe. Alpha was already marked MP safe. Notes: svn path=/head/; revision=127041
* Add arl(4): driver for Aironet Arlan 655 wireless adapters.Max Khon2004-03-157-0/+1656
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=127040
* The PPS code needs to be much more brutal to avoid synchronism onPoul-Henning Kamp2004-03-151-14/+32
| | | | | | | hardware with non-sucky clocks. Notes: svn path=/head/; revision=127039
* Regen for ptrace being safe again.John Baldwin2004-03-155-6/+6
| | | | Notes: svn path=/head/; revision=127035
* Drop the proc lock around calls to the MD functions ptrace_single_step(),John Baldwin2004-03-152-7/+12
| | | | | | | | | | | | | ptrace_set_pc(), and cpu_ptrace() so that those functions are free to acquire Giant, sleep, etc. We already do a PHOLD/PRELE around them so that it is safe to sleep inside of these routines if necessary. This allows ptrace() to be marked MP safe again as it no longer triggers lock order reversals on Alpha. Tested by: wilko Notes: svn path=/head/; revision=127034
* Add vectors for _snprintf() and _vsnprintf() (redirected straight toBill Paul2004-03-151-0/+2
| | | | | | | | | | | | snprintf() and vsnprintf() in FreeBSD kernel land). This is needed by the Intel Centrino 2200BG driver. Unfortunately, this driver still doesn't work right with Project Evil even with this tweak, but I'm unable to diagnose the problem since I don't have access to a sample card. Notes: svn path=/head/; revision=127026
* Move GID/UID_MAX under __BSD_VISIBLE protection.Max Laier2004-03-151-3/+3
| | | | | | | | Requested by: bde Approved by: bms(mentor) Notes: svn path=/head/; revision=127025
* Add SATA support fieldsSøren Schmidt2004-03-151-4/+14
| | | | Notes: svn path=/head/; revision=127021
* Remove sysctl security.jail.list_allowed.Pawel Jakub Dawidek2004-03-151-6/+1
| | | | | | | | | | This functionality was a misfeature, sysctl was added and turned off by default just to check if nobody complains. Reviewed by: rwatson Notes: svn path=/head/; revision=127020