summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* | Diff reduction to NetBSDjulian2004-03-192-23/+57
| | | | | | | | | | | | | | Trying to figure out why this only works with SOME EHCI controllers. Obtained from: NetBSD MFC after: 1 week
* | Move the poweroff handler to a separate function. Make sure it is runnjl2004-03-191-15/+35
| | | | | | | | | | on the boot processor (cpuid == 0). Some chipsets do not power off the system if the shutdown handler runs on an AP.
* | Re-enable detach events after adding a bugfix from NetBSDjulian2004-03-191-1/+2
| | | | | | | | | | | | | | | | that unbreaks them. Submitted by: dillon Obtained from: NetBSD MFC after: 2 days
* | 'vi' got away from me in rev. 1.13.obrien2004-03-191-0/+1
| |
* | Prevent the strange situation that after each load/unload of a ppbusguido2004-03-187-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device, the device is probed multiple times (so each device is detected N times after unloading/loading the module N-1 times). The real fix is (quote Doug and Warner): > : In an ideal world, there should be some kind of BUS_UNIDENTIFY method > : which a driver could use to delete the devices it created in > : BUS_IDENTIFY. > > Or the bus would have a driver deleted routine that got called and it > would remove all instances of the devclass attached to it. Reviewed by: Doug Rabson & Warner Losh
* | Fixed a nasty old bug where a visual bell in the currently activeru2004-03-181-1/+2
| | | | | | | | | | | | | | | | VTY prevented waking up processes waiting for the output queue to get free on other VTYs. In collaboration with: Vsevolod Lobko MFC after: 1 week
* | When mmap-ing a file from a noexec mount, be sure not to grant the rightguido2004-03-181-1/+5
| | | | | | | | | | | | | | | | to mmap it PROT_EXEC. This also depends on the architecture, as some architextures (e.g. i386) do not distinguish between read and exec pages Inspired by: http://linux.bkbits.net:8080/linux-2.4/cset@1.1267.1.85 Reviewed by: alc
* | Add tunables for disabling serialized method execution and disabling thenjl2004-03-181-0/+19
| | | | | | | | | | new _OSI method. These can be used if these new features end up causing regression for users.
* | Utilize sf_buf_alloc() and sf_buf_free() to implement the ephemeralalc2004-03-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mappings required by mdstart_swap(). On i386, if the ephemeral mapping is already in the sf_buf mapping cache, a swap-backed md performs similarly to a malloc-backed md. Even if the ephemeral mapping is not cached, this implementation is still faster. On 64-bit platforms, this change has the effect of using the direct virtual-to-physical mapping, avoiding ephemeral mapping overheads, such as TLB shootdowns on SMPs. On a 2.4GHz, 400MHz FSB P4 Xeon configured with 64K sf_bufs and "mdmfs -S -o async -s 128m md /mnt" before: dd if=/dev/md0 of=/dev/null bs=64k 134217728 bytes transferred in 0.430923 secs (311465697 bytes/sec) after with cold sf_buf cache: dd if=/dev/md0 of=/dev/null bs=64k 134217728 bytes transferred in 0.367948 secs (364773576 bytes/sec) after with warm sf_buf cache: dd if=/dev/md0 of=/dev/null bs=64k 134217728 bytes transferred in 0.252826 secs (530870010 bytes/sec) malloc-backed md: dd if=/dev/md0 of=/dev/null bs=64k 134217728 bytes transferred in 0.253126 secs (530240978 bytes/sec)
* | Add the missing Giant when doing anything with VFS -- in this case,green2004-03-181-1/+4
| | | | | | | | releasing the ktrace vnode.
* | For AMD64, lets officially support a -O2 kernel build!obrien2004-03-181-0/+2
| | | | | | | | | | | | | | I've added -fno-strict-aliasing for now so we can ease into this. I wanted to shoot for -O3, but the inlining caused problems due to GCC's size heuristics; so also add -frename-registers, which is one of the things -O3 would have given us.
* | Check in files off the vendor branch as well as files with local patches.njl2004-03-184-23/+75
| |
* | This commit was generated by cvs2svn to compensate for changes in r127175,njl2004-03-1818-103/+317
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Import of Intel ACPI-CA 20040311.njl2004-03-1822-126/+392
| | |
| * | Remove these on the vendor branch as we no longer import them (and somenjl2004-03-035-2897/+0
| | | | | | | | | | | | | | | | | | were never used). CVS surgery credit: joe
* | | Verify more bits of the ELF header: the program header tablenectar2004-03-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | entry size and the ELF version. Also, avoid a potential integer overflow when determining whether the ELF header fits entirely within the first page. Reviewed by: jdp A panic when attempting to execute an ELF binary with a bogus program header table entry size was Reported by: Christer Öberg <christer.oberg@texonet.com>
* | | Correct a bug introduced with the recent clone API chang: when the clonerwatson2004-03-181-0/+1
| | | | | | | | | | | | | | | event handler for if_tap fails, make sure to clean up clone state to prevent a clone memory leak.
* | | Make the vaule of PTT_RELAY_SID match the RFC. This should help PPPoEdwmalone2004-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | users that are working with relayed PPPoE. Submitted by: Bodo Rüskamp <jordbaer@mac.com> PR: 44936 Approved by: julian MFC after: 1 week
* | | s/enable/enables/ in a commentbrueffer2004-03-181-1/+1
| | |
* | | sAdd a comment indicating why there continues to be a race condition inrwatson2004-03-181-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the tap driver, even with Giant over the cdev operation vector, due to a non-atomic test-and-set of the si_drv1 field in the dev_t. This bug exists with Giant under high memory pressure, as malloc() may sleep in tapcreate(), but is less likely to occur. The resolution will probably be to cover si_drv1 using the global tapmtx since no softc is available, but I need to think about this problem more generally across a range of drivers using si_drv1 in combination with SI_CHEAPCLONE to defer expensive allocation to open(). Correct what appears to be a bug in the original if_tap implementation, in which tapopen() will panic if a tap device instance is opened more than once due to an incorrect assertion -- only triggered if INVARIANTS is compiled in (i.e., when built into a kernel). Return EBUSY instead. Expand mtx_lock() coverage using tp->tap_mtx to include tp->ether_addr.
* | | Generate opt_inet.h.fjoe2004-03-181-1/+5
| | | | | | | | | | | | Add opt_inet.h to SRCS.
* | | Move "is consumer attached?" check before G_VALID_PROVIDER() check,pjd2004-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | because if consumer is not attached, its provider never will be valid, so we never reach this check. Approved by: phk
* | | Removed a vestige of the stl driver.bde2004-03-181-312/+0
| | |
* | | Document machdep.hlt_cpus.obrien2004-03-181-1/+2
| | | | | | | | | | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
* | | Back out code for auto-gdb detection that accidentally leaked into thenjl2004-03-181-17/+5
| | | | | | | | | | | | | | | | | | | | | bus_alloc_resource_any commit. Submitted by: bde Pointy-hat: njl
* | | Support the DPF (start dependent function) resource type in parsing _PRS.njl2004-03-181-10/+21
| | | | | | | | | | | | | | | | | | This should fix this error people get attaching cardbus controllers: pcib0: _PRS resource entry has unsupported type 2
* | | Regen after 1.169 of usbdevs.sobomax2004-03-182-2/+23
| | |
* | | Add support for Crystalfontz CFA-632, CFA-633 and CFA-634, all of themsobomax2004-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
* | | Cleanup hints, given that no hammer machine have (nor ever will have)obrien2004-03-181-47/+0
| | | | | | | | | | | | | | | | | | ISA slots. Submitted by: Peter
* | | Revise socow_iodone() in light of recent sf_buf changes. Specifically,alc2004-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.
* | | Eliminate bogus usage of WI_RSSI_TO_DBM(). Not only does it boguslygreen2004-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).
* | | Fix border error to allow systems that specify 100 for latency also usenjl2004-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | C2 and 1000 to use C3. Submitted by: Bruno Ducrot <ducrot@poupinou.org> Tested by: Scott Lambert <lambert@lambertfam.org>
* | | sync comment with i386's isa.c.. This removes a comment that is YEARSjmg2004-03-174-12/+4
| | | | | | | | | | | | old...
* | | Style(9) round for the pf kernel parts. Mostly #if defined() -> #ifdefmlaier2004-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)
* | | Add a comment with an explanation why we don't report EPIPE errors onpjd2004-03-171-0/+5
| | | | | | | | | | | | | | | | | | nfs sockets. Requested by: ru
* | | - Replace wait1() with a kern_wait() function that accepts the pid,jhb2004-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
* | | remove stale comment since these limits have been increased YEARS ago...jmg2004-03-171-3/+1
| | |
* | | Don't report EPIPE errors on nfs sockets. These can be due to idle tcppjd2004-03-171-2/+5
| | | | | | | | | | | | | | | | | | mounts which will be closed by netapp, solaris, etc. if left idle too long. Obtained from: NetBSD
* | | Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-17267-1125/+1090
| | | | | | | | | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* | | Add bus_alloc_resource_any(9), which does bus_alloc_resource() with thenjl2004-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
* | | Fix information leakage.pjd2004-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.
* | | Make ddp_ports static, as it's not used outside of ddp_usrreq.c.rwatson2004-03-173-3/+2
| | | | | | | | | | | | | | | Inspired by: Day spent hiking to hot springs in Taiwan Powered by: Asia BSDCon 2004
* | | Adjust the number of processes waiting on a semaphore properly if we'recperciva2004-03-171-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | woken up in the middle of sleeping. PR: misc/64347 Reviewed by: tjr MFC after: 7 days
* | | Adjust $FreeBSD$'s.obrien2004-03-172-5/+1
| | |
* | | Remove tun_proc; replace with tun_pid. tun_proc pointer may be stalerwatson2004-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>
* | | Add tap_mtx to tap_softc in order to protect per-softc variablesrwatson2004-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>
* | | Implement "arlconfig arlX quality".fjoe2004-03-163-41/+103
| | | | | | | | | | | | | | | | | | Man pages fixes. Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>
* | | Avoid doing bawrite to initialize inode block while holding cylinderkan2004-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
* | | Run through indent(1) so I can read the code without getting a headache.des2004-03-1614-5317/+5233
| | | | | | | | | | | | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent.
* | | Add explicit dependency on "ether", since we use ether_ifattach().mux2004-03-161-0/+1
| | |
OpenPOWER on IntegriCloud