summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert the changes I made to devfs_setattr() in r179457.ed2008-06-011-4/+3
| | | | | | | | | | | As discussed with Robert Watson and John Baldwin, it would be better if PTY's are created with proper permissions, turning grantpt() into a no-op. Bypassing security frameworks like MAC by passing NOCRED to VOP_SETATTR() will only make things more complex. Approved by: philip (mentor)
* Try to detect a Synaptics touchpad before IntelliMouse. Some touchpads willphilip2008-06-011-2/+2
| | | | | | | | | | | | | pretend to be IntelliMouse (which have a few more features than generic mice) causing the IntelliMouse probe to work and the Synaptics code never to be called. This should not break "real" IntelliMouse because the Synaptics detection code is fairly specific. PR: kern/120833 Submitted by: Eygene Ryabinkin <rea-fbsd -at- codelabs.ru> MFC after: 1 week
* PKT_ALIAS_FOUND_HEADER_FRAGMENT result is not an error, so pass that packet.mav2008-06-011-3/+4
| | | | | | | | This fixes packet fragmentation handeling. Pass really available buffer size to libalias instead of MCLBYTES constant. MCLBYTES constant were used with believe that m_megapullup() always moves date into a fresh cluster that sometimes may become not so.
* Fix packet fragmentation support broken by copy/paste error in rev.1.60.mav2008-06-011-2/+2
| | | | ip_id should be u_short, but not u_char.
* Correct an error in pmap_promote_pde() that may result in an errantalc2008-06-011-5/+3
| | | | | | | | | | | | promotion within the kernel's address space. Specifically, pmap_promote_pde() is only called when the page table page (PTP) that is referenced by the given PDE has a full "use count", i.e., its wire_count is 512. Although this guarantees for a user address space that all 512 PTEs in the PTP hold valid mappings, the same is not true of the kernel's address space. A kernel PTP always has a use count of 512 regardless of the state of the PTEs. Therefore, pmap_promote_pde() should not assume (or assert) that the first PTE in the PTP is valid.
* Merge a recent change from the OpenSolaris source tree.jb2008-06-012-13/+96
| | | | | | | | | | (Don't ask for a vendor import of this yet, we're in the early days of svn) Instead of using cyclic timers to call the state clean and deadman callbacks, use a callout on FreeBSD to avoid the deadlock on FreeBSD due to trying to send interprocessor interrupts with interrupts disabled. Reported by: ps, jhb, peter, thompsa
* 5416 and similar chips grew another region in the pci clock domainsam2008-05-311-2/+6
| | | | | | | where register accesses do not pass through the byte-lane hardware; extend the register op macros to deal with this MFC after: 1 week
* Dont install .svn metadata with the sendmail install.remko2008-05-311-2/+2
| | | | | | Submitted by: marcel Approved by: imp (mentor, implicit) MFC after: 3 days
* Remove a quote about the instant-workstation, this portremko2008-05-311-10/+0
| | | | | | | | has been removed ages ago. PR: docs/124166 Submitted by: keramida Prodded by: novel,keramida
* Import rewritten nve device id's, which brings this moreremko2008-05-312-41/+79
| | | | | | | | | inline with if_nfe. PR: 110883 Submitted by: Claudel <regis at claudel dot ch> Approved by: imp (mentor, implicit) MFC after: 1 week
* Merge back devfs changes from the mpsafetty branch.ed2008-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | In the mpsafetty branch, PTY's are allocated through the posix_openpt() system call. The controller side of a PTY now uses its own file descriptor type (just like sockets, vnodes, pipes, etc). To remain compatible with existing FreeBSD and Linux C libraries, we can still create PTY's by opening /dev/ptmx or /dev/ptyXX. These nodes implement d_fdopen(). Devfs has been slightly changed here, to allow finit() to be called from d_fdopen(). The routine grantpt() has also been moved into the kernel. This routine is a little odd, because it needs to bypass standard UNIX permissions. It needs to change the owner/group/mode of the slave device node, which may often not be possible. The old implementation solved this by spawning a setuid utility. When VOP_SETATTR() is called with NOCRED, devfs_setattr() dereferences ap->a_cred, causing a kernel panic. Change the de_{uid,gid,mode} code to allow changes when a->a_cred is set to NOCRED. Approved by: philip (mentor)
* - Add ARM as a platform under development.hrs2008-05-312-2/+4
| | | | - Bump copyright year.
* New release notes:hrs2008-05-311-0/+42
| | | | | | | | | | | syscons(4) Colemak keyboard layout support, jme(4) for JMicron JMC250 Gigabit/JMC260 Fast Ethernet controllers, ISDN4BSD and netatm removal, libarchive-based cpio added and GNU cpio renamed as gcpio, jexec(8) -j option added, ping6(8) return value is now the same as ping(8), tar(1) --numeric-owner, -S, and -s options added, and pkg_create(1) -n option added.
* Add the DTrace test kernel module so that people can run the tests.jb2008-05-311-0/+1
|
* Dis-associate from ncurses.peter2008-05-311-1/+0
|
* Remove one of my dead email addresses from a copyright message.peter2008-05-311-1/+1
|
* After probing the available frequency settings, restore the CPU to run atjhb2008-05-301-17/+5
| | | | | | | | | | whatever frequency it started at instead of always picking the highest frequency. The first version of this driver attempted to do this, but it set the speed to the first frequency in the list rather than the value it had saved. MFC after: 1 week Discussed with: rpaulo, phk
* Remove various and sundry NetBSDism's in preparation for adding locking.jhb2008-05-304-136/+77
|
* Trim an extra semi-colon.jhb2008-05-301-1/+1
|
* Fix build with DEBUG defined.jhb2008-05-301-4/+4
| | | | Reported by: tinderbox
* Call the fcntl compatiblity wrapper from the thread library fcntl wrappersdfr2008-05-305-5/+10
| | | | | | so that they get the benefit of the (limited) forward ABI compatibility. MFC after: 1 week
* - Add long options to pkg_install.flz2008-05-3013-100/+206
| | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530.
* When RADIX_MPATH is enabled, the route selection is not rotatingqingli2008-05-302-6/+6
| | | | | | | | through the multipath entries. The hash value was a signed integer and was always giving a -1 value. PR: 123991 Submitted by: Barrett Lyon
* Don't rely on NSM to help us forget about RPC client handles fordfr2008-05-301-6/+17
| | | | | | | | clients that have rebooted (or otherwise changed port numbers). If the client is broken or has no active locks, it won't notify us. Fall back on the two minute timeout logic used by the userland rpc.lockd code. MFC after: 1 week
* Fix a panic that it's occurred when NDIS init handler returned a errorweongyo2008-05-301-5/+8
| | | | | by unknown reasons. In this case, sc->ifp is still NULL so it will cause a page fault during calling ndis_detach()
* Fix a panic that a priority value which is passed to cv_broadcastpri(9)weongyo2008-05-301-4/+6
| | | | | | | can be < 0. We don't ignore a `increment' argument but at least we keep a priority value of NDIS threads over PRI_MIN_KERN. Reviewed by: thompsa
* don't let KERNBUILDDIR control whether we copy opt_ah.hsam2008-05-301-1/+1
| | | | Submitted by: jkim
* Use a seperated hash table for mutex and rwlock, avoid wasting some timedavidxu2008-05-301-17/+21
| | | | on walking through idle threads sleeping on condition variables.
* The XScale PXA255 has three generally ns16x50 compatible UARTs. One of thebenno2008-05-301-5/+31
| | | | | | | | | | | | | | | variations from normal 16x50 behaviour however is the the use of a normally unused bit of IER to control RX timeout interrupts independently of the generally used RXRDY bit. If this bit is not enabled, we only ever get interrupts when the FIFO is full, never before. This is not very useful when the UART is being used as a console. In order to support this without causing potential problems on more "normal" 16x50 variants, this change introduces two hints for the uart device, ier_mask and ier_rxbits. These can be used to override which bits get set and cleared when we're enabling and disabling RX interrupts. Reviewed by: marcel
* Eliminate global mutex by using pthread_once's state field asdavidxu2008-05-301-33/+29
| | | | a semaphore.
* Use if_printf() and if_xname and retire 'unit' from the softc.jhb2008-05-292-48/+48
|
* Fix some bugs/complaints:mr2008-05-292-22/+31
| | | | | | | | | - make addr2jid static - add -h Flag for hostname/ip-number search - s,strncmp,strcmp, in addr2jid - return jid only if found once Requested by: some
* Read lock rather than write lock TCP inpcbs in monitoring sysctls. Inrwatson2008-05-291-35/+31
| | | | | | | | some cases, add explicit inpcb locking rather than relying on the global lock, as we dereference inp_socket, but also allowing us to drop the global lock more quickly. MFC after: 1 week
* Remove the distinction between device minor and unit numbers.ed2008-05-296-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Even though we got rid of device major numbers some time ago, device drivers still need to provide unique device minor numbers to make_dev(). These numbers are only used inside the kernel. They are not related to device major and minor numbers which are visible in devfs. These are actually based on the inode number of the device. It would eventually be nice to remove minor numbers entirely, but we don't want to be too agressive here. Because the 8-15 bits of the device number field (si_drv0) are still reserved for the major number, there is no 1:1 mapping of the device minor and unit numbers. Because this is now unused, remove the restrictions on these numbers. The MAXMAJOR definition was actually used for two purposes. It was used to convert both the userspace and kernelspace device numbers to their major/minor pair, which is why it is now named UMINORMASK. minor2unit() and unit2minor() have now become useless. Both minor() and dev2unit() now serve the same purpose. We should eventually remove some of them, at least turning them into macro's. If devfs would become completely minor number unaware, we could consider using si_drv0 directly, just like si_drv1 and si_drv2. Approved by: philip (mentor)
* Employ read locks on UDP inpcbs, rather than write locks, whenrwatson2008-05-292-24/+30
| | | | | | | | monitoring UDP connections using sysctls. In some cases, add previously missing locking of inpcbs, as inp_socket is followed, which also allows us to drop global locks more quickly. MFC after: 1 week
* - Reduce function call overhead for uncontended case.davidxu2008-05-293-217/+104
| | | | | - Remove unused flags MUTEX_FLAGS_* and their code. - Check validity of the timeout parameter in mutex_self_lock().
* Rather than m_free(dtom(si)) in spx_reass(), return (1) which causes therwatson2008-05-291-6/+3
| | | | | | caller to free the mbuf without using dtom(). MFC after: 3 days
* The SIIG 4 port serial card based on the Oxford OX16PCI954 ismckusick2008-05-291-4/+4
| | | | | | | | | | clocked at 10x normal speed. That is, when you set it for 9600 baud, it actually does 96000 baud. In order to make it plug and play with other serial ports, it has to have its clock rate reduced by a factor of 10. Discussed with: Marcel Moolenaar MFC after: 2 weeks
* Correct minor comment typos, make white space use before block commentsrwatson2008-05-291-6/+19
| | | | | | more consistent. MFC after: 3 days
* Bring these back to HEAD.obrien2008-05-297-0/+9661
| | | | | (I thought ncvs@ had rm'ed these MIPS files a long time ago... SVN had better work out - else 7 more files off the vendor branch.)
* This commit was generated by cvs2svn to compensate for changes in r179404,obrien2008-05-2939-0/+31112
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2008-05-2946-0/+40773
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | opt_ah.h is not constructed by config, it always comes fromsam2008-05-291-1/+1
| | | | | | | | | | the hal so don't let KERNBUILDDIR control whether or not we copy it into the build dir
* | correct rx radiotap channel flags construction for 11n framessam2008-05-291-19/+18
| |
* | Cleanup power handling and fix suspend/resume:sam2008-05-292-25/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o do not put the chip into full sleep in ath_stop as it gains nothing and causes many parts to hang in ath_detach because we may touch the chip during vap teardown; this may also fix issues with unloading the module o add a note in ath_detach to explain ath_hal_detach puts the chip in low power mode; this is useful to know as it means unloading the module will place a pci device in the lowest possible power state o leave an #ifdef notyet marker for powering down the chip when a device is marked down; we can't do that until we handle all the ways the driver may be entered and touch the chip o fix resume by reloading the h/w key cache as it's been clobbered (for pci) by the socket being powered off; for station mode we directly stop+init the chip and then simulate a beacon miss to get the upper layers sync'd up; for other configs we must brute force stop+start the vaps so they go through the state machine
* | close a race on detach by reordering bpfdetach and taskqueue_freesam2008-05-281-4/+8
| |
* | send EAPOL frames at the same rate used for mgt framessam2008-05-281-2/+10
| |
* | misc cleanups for stricter compilationsam2008-05-281-14/+4
| |
* | update copyright year and nuke dual-gpl bits that should've removed long agosam2008-05-281-8/+1
| |
* | Add ieee80211_crypto_reload_keys to push all keys knownsam2008-05-282-0/+44
| | | | | | | | | | to net80211 back into the device; intended for use on resume by devices that lose the contents of their h/w key table.
OpenPOWER on IntegriCloud