aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'sg' argument to linux_sendto_hdrincl, which is what I think wasRobert Watson2004-07-181-1/+1
| | | | | | | intended. This fixes the build, but might require revision. Notes: svn path=/head/; revision=132331
* Drop Giant and acquire the UNIX domain socket subsystem lock a bitRobert Watson2004-07-181-4/+4
| | | | | | | | | | | | earlier in unp_connect() so that vp->v_socket can't change between our copying its value to a local variable and later use of that variable. This may have been responsible for a panic during shutdown that I experienced where simultaneous closing of a listen socket by rpcbind and a new connection being made to rpcbind by mountd. Notes: svn path=/head/; revision=132325
* m_tag_copy takes an additional "how" parameter in FreeBSD.Max Laier2004-07-181-0/+8
| | | | | | | Submitted by: rwatson Notes: svn path=/head/; revision=132321
* Fix macro so that we don't get missing initializer warnings.Alfred Perlstein2004-07-171-1/+3
| | | | Notes: svn path=/head/; revision=132320
* Change named parameters from max (which conflicts with a macro in libkern.h)Alfred Perlstein2004-07-171-2/+2
| | | | | | | to maxval. Notes: svn path=/head/; revision=132319
* Remedy my omission of one change in the prevision revision: pmap_remove()Alan Cox2004-07-171-0/+3
| | | | | | | must pin the current thread in order to call pmap_pte_quick(). Notes: svn path=/head/; revision=132318
* Fix typo.David Xu2004-07-171-1/+1
| | | | Notes: svn path=/head/; revision=132317
* - Utilize pmap_pte_quick() rather than pmap_pte() in pmap_remove() andAlan Cox2004-07-171-2/+4
| | | | | | | | | | pmap_remove_page(). The reason being that pmap_pte_quick() requires the page queues lock, which is already held, rather than Giant. - Assert that the page queues lock is held in pmap_remove_page() and pmap_remove_pte(). Notes: svn path=/head/; revision=132316
* Fix the !INET6 build.David Malone2004-07-171-0/+4
| | | | | | | Reported by: alc Notes: svn path=/head/; revision=132315
* Add a kern_setsockopt and kern_getsockopt which can read the optionDavid Malone2004-07-173-99/+110
| | | | | | | | | values from either user land or from the kernel. Use them for [gs]etsockopt and to clean up some calls to [gs]etsockopt in the Linux emulation code that uses the stackgap. Notes: svn path=/head/; revision=132313
* The tcp syncache code was leaving the IPv6 flowlabel uninitialisedDavid Malone2004-07-172-6/+32
| | | | | | | | | | | | | | | for the SYN|ACK packet and then letting in6_pcbconnect set the flowlabel later. Arange for the syncache/syncookie code to set and recall the flow label so that the flowlabel used for the SYN|ACK is consistent. This is done by using some of the cookie (when tcp cookies are enabeled) and by stashing the flowlabel in syncache. Tested and Discovered by: Orla McGann <orly@cnri.dit.ie> Approved by: ume, silby MFC after: 1 month Notes: svn path=/head/; revision=132307
* Merge in a stable fix from OpenBSD:Max Laier2004-07-171-52/+63
| | | | | | | | | | | | | | MFC: Fix by dhartmei@ change pf_route() loop detection: introduce a counter (number of times a packet is routed already) in the mbuf tag, allow at most four times. Fixes some legitimate cases broken by the previous change. Reviewed by: dhartmei Notes: svn path=/head/; revision=132303
* Dont set "address setup timing" on newer VIA chips.Søren Schmidt2004-07-171-1/+2
| | | | | | | closes PR: 69180 Notes: svn path=/head/; revision=132291
* Rename the sound device drivers.Yoshihiro Takahashi2004-07-172-12/+14
| | | | Notes: svn path=/head/; revision=132287
* Merged from the following changes.Yoshihiro Takahashi2004-07-176-60/+88
| | | | | | | | | - sys/dev/fdc/fdc.c revision 1.281 - sys/dev/fdc/fdcvar.h revision 1.3 - sys/dev/fdc/fdc_isa.c revision 1.7 Notes: svn path=/head/; revision=132286
* Correct typo.Yoshihiro Takahashi2004-07-171-1/+1
| | | | Notes: svn path=/head/; revision=132285
* Remove duplicate include.Yoshihiro Takahashi2004-07-171-1/+0
| | | | Notes: svn path=/head/; revision=132284
* Add some PCI IDs for OHCI chips.Hidetoshi Shimokawa2004-07-172-0/+30
| | | | | | | Obtained from: DragonFly BSD Notes: svn path=/head/; revision=132283
* Resurrect kld support. Support ADDR16_HA/LA relocations, and syncPeter Grehan2004-07-171-43/+45
| | | | | | | | the icache on module load. Requires "-mlongcall" support, in gcc >= 3.3 but needs a bugfix to support gcc arith builtins. Notes: svn path=/head/; revision=132282
* Define semantic of M_SKIP_FIREWALL more precisely, i.e. also pass associatedMax Laier2004-07-173-22/+34
| | | | | | | | | | | icmp_error() packets. While here retire PACKET_TAG_PF_GENERATED (which served the same purpose) and use M_SKIP_FIREWALL in pf as well. This should speed up things a bit as we get rid of the tag allocations. Discussed with: juli Notes: svn path=/head/; revision=132280
* MFamd64 revision 1.478Alan Cox2004-07-171-6/+5
| | | | | | | Simplify pmap_remove_pages(), eliminating unnecessary indirection. Notes: svn path=/head/; revision=132276
* Make M_SKIP_FIREWALL a global (and semantic) flag, preventing anything fromJuli Mallett2004-07-172-14/+2
| | | | | | | | | | | | | | using M_PROTO6 and possibly shooting someone's foot, as well as allowing the firewall to be used in multiple passes, or with a packet classifier frontend, that may need to explicitly allow a certain packet. Presently this is handled in the ipfw_chk code as before, though I have run with it moved to upper layers, and possibly it should apply to ipfilter and pf as well, though this has not been investigated. Discussed with: luigi, rwatson Notes: svn path=/head/; revision=132274
* Be consistant with probeWarner Losh2004-07-161-2/+1
| | | | Notes: svn path=/head/; revision=132271
* Ignore more strange return values of the test_aux_port() function,Maxime Henrion2004-07-162-12/+20
| | | | | | | | | | | | | because some notebooks (apparently Compaq, Toshiba and Acer ones) erroneously return 2 or 3 there. PR: kern/61482, kern/54188 Submitted by: Ulf Lilleengen <lulf@kerneled.org>, Victor Balada Diaz <victor@alf.dyndns.ws> MFC after: 3 days Notes: svn path=/head/; revision=132270
* Fix the build. pcm is no more.Paul Saab2004-07-161-4/+0
| | | | Notes: svn path=/head/; revision=132269
* Remove dead or unused code, such as spl calls.Alan Cox2004-07-161-25/+0
| | | | Notes: svn path=/head/; revision=132267
* - Move TDF_OWEPREEMPT, TDF_OWEUPC, and TDF_USTATCLOCK over to td_pflagsJohn Baldwin2004-07-169-24/+31
| | | | | | | | | | | | since they are only accessed by curthread and thus do not need any locking. - Move pr_addr and pr_ticks out of struct uprof (which is per-process) and directly into struct thread as td_profil_addr and td_profil_ticks as these variables are really per-thread. (They are used to defer an addupc_intr() that was too "hard" until ast()). Notes: svn path=/head/; revision=132266
* Whitespace fix.John Baldwin2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132265
* Improve readability a bit by changing some code at the end of a functionJohn Baldwin2004-07-161-6/+2
| | | | | | | | | | | | | | | | | | | that did: if (foo) return else blah to just do the simpler if (!foo) blah instead. Notes: svn path=/head/; revision=132264
* /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf32.so.1David E. O'Brien2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132263
* Use ACPI_ALL_NOTIFY instead of registering handlers separately.Nate Lawson2004-07-162-8/+4
| | | | Notes: svn path=/head/; revision=132261
* Fix the alpha (and others) module build by only building fdc_acpi.c onNate Lawson2004-07-161-7/+9
| | | | | | | | i386 and amd64. The only other ACPI machine (ia64) doesn't support floppy drives. Tested by: make MACHINE={pc98,i386,amd64,alpha,sparc64} Notes: svn path=/head/; revision=132260
* when IN6P_AUTOFLOWLABEL is set, the flowlabel is not set onHajimu UMEMOTO2004-07-161-2/+10
| | | | | | | | | | | outgoing tcp connections. Reported by: Orla McGann <orly@cnri.dit.ie> Reviewed by: Orla McGann <orly@cnri.dit.ie> Obtained from: KAME Notes: svn path=/head/; revision=132259
* According to POSIX sys/socket.h must define CMSG_NXTHDR but most notHartmut Brandt2004-07-161-1/+1
| | | | | | | | | | | define NULL. This means we cannot use NULL in the definition of CMSG_NXTHDR. So replace NULL with 0. PR: kern/60309 Submitted by: Jeff King <peff-freebsd@peff.net> Notes: svn path=/head/; revision=132258
* Fix acpi_video loading. When we started cleaning up the duplicate handlesNate Lawson2004-07-161-5/+4
| | | | | | | | | | | | | | | | | | left around after the PCI probe, acpi_video stopped attaching because while it was an acpi child device, it really is a PCI device. Fix this by making it a PCI child. * Remove non-handle ivars accesses since child busses only implement acpi_get_handle(). * Access the acpi softc directly through the devclass instead of through the implied parent. * Clean up a potential panic on unload by freeing the sysctl context before storing NULL in the OID. Found by: marks Notes: svn path=/head/; revision=132256
* Add a SUSER_RUID flag to suser_cred. This flag indicates that we want toColin Percival2004-07-162-3/+3
| | | | | | | | | | check if the *real* user is the superuser (vs. the normal behaviour, which checks the effective user). Reviewed by: rwatson Notes: svn path=/head/; revision=132255
* Sync the example of MODULES_OVERRIDE with the renamed sound drivers.Seigo Tanimura2004-07-161-1/+1
| | | | | | | Pointed out by: Christoph Mallon <christoph.mallon@gmx.de> Notes: svn path=/head/; revision=132250
* Rename snd_pcm as sound.Seigo Tanimura2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132248
* Rename the sound device drivers:Seigo Tanimura2004-07-1636-156/+181
| | | | | | | | | | | | | | | | | - `sound' The generic sound driver, always required. - `snd_*' Device-dependent drivers, named after the sound module names. Configure accordingly to your hardware. In addition, rename the `snd_pcm' module to `sound' in order to sync with the driver names. Suggested by: cg Notes: svn path=/head/; revision=132236
* Remove unused fields from the pmap.Alan Cox2004-07-162-4/+0
| | | | Notes: svn path=/head/; revision=132235
* Rename Biba and MLS _single label elements to _effective, which moreRobert Watson2004-07-164-353/+353
| | | | | | | | | | | | accurately represents the intention of the 'single' label element in Biba and MLS labels. It also approximates the use of 'effective' in traditional UNIX credentials, and avoids confusion with 'singlelabel' in the context of file systems. Inspired by: trhodes Notes: svn path=/head/; revision=132232
* When entering soclose(), assert that SS_NOFDREF is not already set.Robert Watson2004-07-161-0/+2
| | | | Notes: svn path=/head/; revision=132230
* Use qsort_r() instead of qsort() when sorting links by latencyGleb Smirnoff2004-07-161-20/+5
| | | | | | | | | | This helps us to remove a global variable and a mutex protecting it. Reviewed by: rwatson Approved by: julian (mentor) Notes: svn path=/head/; revision=132229
* Copy qsort_r(3) from libc to libkern.Gleb Smirnoff2004-07-154-24/+52
| | | | | | | | Reviewed by: phk Approved by: julian (mentor) Notes: svn path=/head/; revision=132228
* fix array index out of bounds in rpc->rc_srtt[], rpc->rc_sdrtt[]Jim Rees2004-07-151-3/+3
| | | | | | | | Noticed by: tedu Approved by: alfred Notes: svn path=/head/; revision=132227
* Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp2004-07-1532-49/+49
| | | | | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming. Notes: svn path=/head/; revision=132226
* MFNetBSD.Lukas Ertl2004-07-151-6/+6
| | | | | | | | | | | | | | rev. 1.67, author: mycroft Fix a byte order error. rev. 1.68, author: mycroft Adjust some silliness that was causing us to do extra work for "frame list rollover" interrupts, which we pretty much ignore. Obtained from: NetBSD Notes: svn path=/head/; revision=132222
* Push down the acquisition and release of the page queues lock intoAlan Cox2004-07-1511-21/+42
| | | | | | | | | pmap_protect() and pmap_remove(). In general, they require the lock in order to modify a page's pv list or flags. In some cases, however, pmap_protect() can avoid acquiring the lock. Notes: svn path=/head/; revision=132220
* Add fdc_acpi to module build, bump WARNS to 2.Nate Lawson2004-07-151-2/+5
| | | | Notes: svn path=/head/; revision=132218
* Hook up fdc_acpi for the kernel build.Nate Lawson2004-07-152-0/+2
| | | | Notes: svn path=/head/; revision=132217