summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add thread-local storage support for arm:gonzo2012-02-142-4/+5
| | | | | - Switch to Variant I TCB layout - Use function from rtld for TCB allocation/deallocation
* Add thread-local storage support for ARM to rtld-elfgonzo2012-02-143-11/+83
| | | | | Reviewed by: cognet Obtained from: NetBSD
* Add ARM relocations types used for thread-local storagegonzo2012-02-141-0/+4
| | | | Reviewed by: cognet
* Add __aeabi_read_tp function required for thread-local storagegonzo2012-02-142-1/+43
| | | | Reviewed by: cognet
* Minor cleanup and added missing svn keywords.brueffer2012-02-131-5/+7
|
* Use if_maddr_*lock() routines to lock the per-interface multicastjhb2012-02-131-2/+2
| | | | address list rather than manipulating the lock directly.
* - use struct ifnet as explicit type of the argument to theluigi2012-02-137-96/+212
| | | | | | | | | | txsync() and rxsync() callbacks, removing some variables made useless by this change; - add generic lock and irq handling routines. These can be useful in case there are no driver locks that we can reuse; - add a few macros to reduce differences with the Linux version.
* Use the non-sleeping variang of t4_wr_mbox in code that can be callednp2012-02-131-1/+1
| | | | | | with locks held. MFC after: 1 day
* Add a sysctl to report the firmware build number.emaste2012-02-131-0/+9
| | | | | | | Some older firmware versions have issues that can be worked around by avoiding certain operations. Add a sysctl dev.aac.#.firmware_build to make it easy for scripts or userland tools to detect the firmware version.
* Fix write(1) to support wide characters.glebius2012-02-132-28/+17
| | | | | Submitted by: amdmi3 PR: bin/164317
* No need to optimise for a node with no hooks, my braino.glebius2012-02-131-5/+2
|
* Polish diff against upstream.ed2012-02-1313-54/+50
| | | | | | | | | | - Revert unneeded whitespace changes. - Revert modifications to loginrec.c, as the upstream version already does the right thing. - Fix indentation and whitespace of local changes. Approved by: des MFC after: 1 month
* Add missed EOL when die() was converted to use rtld_fdputstr() insteadkib2012-02-131-0/+1
| | | | | | | | of errx(). Reported by: amdmi3 PR: bin/165075 MFC after: 3 days
* Correct the 802.11s mesh configuration structure and related tidbits.adrian2012-02-132-20/+53
| | | | | | | | | | | | | | | | | | | | | | | | * Change the mesh IE size to be IEEE80211_MESH_CONF_SZ rather than the size of the structure; * conf_cap is now a uint8_t rather than a uint16_t (uint16_t in D3.0, uint8_t in the amendment spec); * Update mesh config capability bits - earlier bits were from draft X, current is amendment spec; * Update the following to be an enum rather than #define and added a VENDOR entry too from the amendment spec; IEEE80211_MESHCONF_PATH_* IEEE80211_MESHCONF_METRIC_* IEEE80211_MESHCONF_CC_* IEEE80211_MESHCONF_SYNC_* IEEE80211_MESHCONF_AUTH_* * Kept IEEE80211_MESHCONF_FORM_* and IEEE80211_MESHCONF_CAP_* as defines because they are defined in a way that we need to mask in/out information; * In IEEE80211_MESHCONF_CAP_* IEEE80211_MESHCONF_CAP_TBTTA is removed and 0x80 is made reserved as defined in the amendment spec. Submitted by: monthadar@gmail.com Reviewed by: rpaulo
* Re-generate /etc/devd/usb.confhselasky2012-02-131-6/+15
| | | | MFC after: 1 day
* Fix panic after "WARNING - ATA_IDENTIFY taskqueue timeout"emaste2012-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | When performing a firmware upgrade via atacontrol[1] the subsequent command may time out producing the error message above. When this happens the callout could still be active, and the system would then panic due to a destroyed semaphore. Instead, ensure that the callout is done first, via callout_drain. Note that this fix applies to the "old" ata(4) and so isn't applicable to the default configuration in HEAD. It is still applicable to stable/8. [1] http://lists.freebsd.org/pipermail/freebsd-current/2012-January/031122.html Submitted by: Nima Misaghian Reviewed by: rstone, attilio, mav Obtained from: SVOS MFC after: 3 days
* Missing conditions in checking whether an inode has been written.mckusick2012-02-131-0/+3
| | | | | Found and tested by: Peter Holm MFC after: 2 weeks (to 9 only)
* Attempt to address some potential vap->iv_bss race conditions.adrian2012-02-131-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are unfortunately a number of situations where vap->iv_bss is changed or freed by some code in net80211. Because multiple threads can concurrently be doing work (and the vap->iv_bss access isn't at all done behind any kind of lock), it's quite possible that: * a change will occur in one thread - eg, by a call through ieee80211_sta_join1(); * a state change occurs in another thread - eg an RX is scheduled in the ath tasklet and it calls ieee80211_input_mimo_all(), which does dereference vap->iv_bss; * these two executing concurrently, causing things to explode. Another instance is ath_beacon_alloc() which takes an ieee80211_node *. It's called with the vap->iv_bss node from ath_newstate(). If the node has changed in the meantime (say it's been freed elsewhere) the reference that it grabbed _before_ refcounting it may be stale. I would _prefer_ that these sorts of things were serialised somewhere but that may be a bit much to ask. Instead, the best we can (currently) hope is that the underlying bss node is still (somewhat) valid. There is a related PR (kern/164382) described by the first case above. That should be fixed by properly serialising the RX path and reset path so an RX can't occur at the same time as the vap free/shutdown path. This is inspired by some related fixes in r212127. PR: kern/165060
* Prevent periodic scripts that run longer than the expected period frombrooks2012-02-121-64/+95
| | | | | | | | | | | starting up before the previous script finishes. This prevents an infinite number of them from piling up and slowing a system down. Since all the refactoring to make this happen required churning the indenting of most of this file, make the indentation more consistent. Reviewed by: simon MFC after: 1 week
* Fix a typo.rmh2012-02-121-1/+1
| | | | | | Approved by: kib (mentor) Reported by: lwhsu, Niclas Zeising <zeising@daemonic.se> MFC after: 5 days
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-1256-345/+345
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* start watchdogd before most of other daemons/serversavg2012-02-122-2/+2
| | | | | | | | | The main benefit is that watchdogd would shutdown after most of other daemons/servers and thus, for example, would remedy a system hang caused by unlucky X server shutdown. Reviewed by: dougb (earlier version) MFC after: 2 weeks
* Move WITHOUT_SOURCELESS_* files to sys/conf/ in order to avoid "universe"rmh2012-02-126-58/+0
| | | | | | | target processing them as if they were standalone kernel config files. Approved by: kib (mentor) MFC after: 5 days
* newvers.sh: unbreak git/git-svn supportavg2012-02-121-4/+8
| | | | MFC after: 2 weeks
* Avoid using BEFORE in the utx rc script.ed2012-02-122-2/+1
| | | | Requested by: dougb
* Include target names in diagnostic output.fjoe2012-02-122-68/+75
| | | | Submitted by: Garrett Cooper
* - Use fixed-width integer types.fjoe2012-02-122-21/+21
| | | | | | | | - Prefer to use C99 stdint types. This fixes ng_cisco on 64-bit architectures. MFC after: 1 week
* And of course, I forgot to add -a to the usage.ed2012-02-111-1/+1
|
* Attempt to implement who -a.ed2012-02-112-22/+16
| | | | | | According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME entries and all implementations that I know of don't.
* sh: Make 'hash' return 1 if at least one utility is not found.jilles2012-02-112-8/+18
| | | | Reported by: lme
* Move utmpx handling out of init(8).ed2012-02-115-42/+25
| | | | | | | | | | | | | | | | | This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become writable, but before users are allowed to log in. This means that they can't cause `hidden logins' by logging in right before init(8) kicks in. - The pututxline(3) function may potentially block on file locking, though this is very rare to occur. By placing it in an rc script, the user can still kill it with ^C if needed. - Most importantly: jails don't use init(8). This means that a force reboot of a system running jails will leave stale entries in the accounting database of the jails individually.
* MFp4 204292:bz2012-02-111-0/+12
| | | | | | | | | | Ignore the NAT_T extension types so we can at least dump the SADB from the in-base libipsec/setkey without error when NAT_T support is present in the kernel, though not printing the additional information yet. However in case there is no NAT_T support in kernel still consider them to be an error. MFC after: 8 weeks
* Replace utxrm(8) by utx(8).ed2012-02-118-33/+103
| | | | | | | | | | At first, I added a utility called utxrm(8) to remove stale entries from the user accounting database. It seems there are cases in which we need to perform different operations on the database as well. Simply rename utxrm(8) to utx(8) and place the old code under the "rm" command. In addition to "rm", this tool supports "boot" and "shutdown", which are going to be used by an rc-script which I am going to commit separately.
* Close a race due to dropping of the map lock between creating map entrykib2012-02-113-10/+11
| | | | | | | | | for a shared mapping and marking the entry for inheritance. Other thread might execute vmspace_fork() in between (e.g. by fork(2)), resulting in the mapping becoming private. Noted and reviewed by: alc MFC after: 1 week
* Nice range comparison.pjd2012-02-111-5/+3
| | | | MFC after: 3 days
* Reverting last change r231449 (fix bin/164947) due to concerns voicedcracauer2012-02-111-23/+3
| | | | | on src-committers and the fact that I can only take care of this in a week.
* The PTRACESTOP() macro is used only once. Inline the only use and removekib2012-02-112-7/+5
| | | | | | the macro. MFC after: 1 week
* Properly name the sysctl to "iflistl" rather than "iflist2", which had beenbz2012-02-111-1/+1
| | | | | | | the prototype name and slipped in in r231505. Spotted in a reply from: bde MFC after: 3 days
* Flesh out support for SAS1078 and SAS1078DE (which are said to actuallymarius2012-02-115-33/+67
| | | | | | | | | | | | | | | | | be the same chip): - The I/O port resource may not be available with these. However, given that we actually only need this resource for some controllers that require their firmware to be up- and downloaded (which excludes the SAS1078{,DE}) just handle failure to allocate this resource gracefully when possible. While at it, generally put non-fatal resource allocation failures under bootverbose. - SAS1078{,DE} use a different hard reset protocol. - Add workarounds for the 36GB physical address limitation of scatter/ gather elements of these controllers. Tested by: Slawa Olhovchenkov PR: 149220 (remaining part)
* Add myself to calendar.dmarion2012-02-111-0/+1
| | | | Approved by: cognet (mentor)
* Use the correct constant (with same value) for comparying the SA type.bz2012-02-111-1/+1
| | | | | | PR: kern/142741 Submitted by: Matthijs Kooiman (matthijs stdin.nl) MFC after: 3 days
* Set read buffer size to multiple of sizeof(struct futx).ed2012-02-111-7/+12
| | | | | | | | | If the utmpx database gets updated while an application is reading it, there is a chance the reading application processes partially overwritten entries. To solve this, make sure we always read a multiple of sizeof(struct futx) at a time. MFC after: 2 weeks
* Depend on the relevant header files.bz2012-02-111-1/+1
|
* Start to try to hide LRO (and some TSO) bits behind #ifdefs as especiallybz2012-02-111-4/+48
| | | | | the symbols are not there when compiling a kernel without IP support and we do have users doing so.
* Remove unused variable miikevlo2012-02-111-2/+0
|
* Use the more common macro to set the if_baudrate to 10Gbit/s. Just usebz2012-02-111-1/+1
| | | | UL not ULL, which should make 32bit archs more happy.
* Make use of the read-only variant of the IF_ADDR_*LOCK() macros introducedbz2012-02-111-2/+2
| | | | in r229614 rather than the compat one.
* In the days before r208307 addswap was running early in the second stagedougb2012-02-112-2/+2
| | | | | | | | of rcorder. Somehow in the intervening period addswap got moved to the very end, which is almost certainly not what we want. This change moves it to right after kld so that for users who need it, they'll get it ASAP.
* Switch getifaddrs(3) to the new API introduced in r231505. Also removebz2012-02-112-122/+54
| | | | | | | | | | | | | conditional code parts not used by or applicable to FreeBSD. The new implementation is supposed to be able to cope with changes to the 'l' versions of the msghdr structs now used as well as to if_data allowing future changes without breaking things. This restores carp(4) config support in HEAD after r231504. Reviewed by: glebius, brooks MFC After: 3 months
* Introduce a new NET_RT_IFLISTL API to query the address list. It worksbz2012-02-115-47/+277
| | | | | | | | | | | on extended and extensible structs if_msghdrl and ifa_msghdrl. This will allow us to extend both the msghdrl structs and eventually if_data in the future without breaking the ABI. Bump __FreeBSD_version to allow ports to more easily detect the new API. Reviewed by: glebius, brooks MFC after: 3 days
OpenPOWER on IntegriCloud