aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add "options CAPABILITY_MODE" and "options CAPABILITIES" to GENERIC kernelRobert Watson2011-12-296-0/+12
| | | | | | | | | | | | | configurations for various architectures in FreeBSD 10.x. This allows basic Capsicum functionality to be used in the default FreeBSD configuration on non-embedded architectures; process descriptors are not yet enabled by default. MFC after: 3 months Sponsored by: Google, Inc Notes: svn path=/head/; revision=228973
* libc: Eliminate some relative relocations in file flags table.Jilles Tjoelker2011-12-291-23/+23
| | | | Notes: svn path=/head/; revision=228972
* For sys/dev/ce/tau32-ddk.c, disable the following warning when buildingDimitry Andric2011-12-292-1/+5
| | | | | | | | | | | | | | | with clang: sys/dev/ce/tau32-ddk.c:1228:37: warning: implicit truncation from 'int' to bitfield changes value from 65532 to 8188 [-Wconstant-conversion] Since this file is obfuscated C, we can never determine (in a sane way, at least :) if this points to a real problem or not. The driver has been in the tree for more than five years, so it most likely isn't. MFC after: 1 week Notes: svn path=/head/; revision=228971
* Fix manual section for acl_get(3) and mac_get(3) family functions.Sergey Kandaurov2011-12-291-14/+14
| | | | | | | | Reviewed by: rwatson MFC after: 1 week Notes: svn path=/head/; revision=228970
* Defer the work of freeing IPv4 multicast options from a socket to anJohn Baldwin2011-12-292-3/+39
| | | | | | | | | | | | | asychronous task. This avoids tearing down multicast state including sending IGMP leave messages and reprogramming MAC filters while holding the per-protocol global pcbinfo lock that is used in the receive path of packet processing. Reviewed by: rwatson MFC after: 1 month Notes: svn path=/head/; revision=228969
* Update if_obytes and if_omcast after successful transmit.Pyun YongHyeon2011-12-291-4/+8
| | | | | | | | | | | | | While I'm here update if_oerrors if parent interface of vlan is not up and running. Previously it updated collision counter and it was confusing to interprete it. PR: kern/163478 Reviewed by: glebius, jhb Tested by: Joe Holden < lists <> rewt dot org dot uk > Notes: svn path=/head/; revision=228967
* Use queue(3) macros instead of home-rolled versions in several places inJohn Baldwin2011-12-297-90/+50
| | | | | | | | | | | the INET6 code. This includes retiring the 'ndpr_next' and 'pfr_next' macros. Submitted by: pluknet (earlier version) Reviewed by: pluknet Notes: svn path=/head/; revision=228966
* Fix clang warnings in sys/dev/ce/if_ce.c and sys/dev/cp/if_cp.c,Dimitry Andric2011-12-292-2/+6
| | | | | | | | | | | using jkim's last patch (reviewed by bde) from here: http://docs.freebsd.org/cgi/mid.cgi?201010141558.03154.jkim MFC after: 1 week Notes: svn path=/head/; revision=228963
* Use curthread rather than PCPU_GET(curthread). 'curthread' usesJohn Baldwin2011-12-292-3/+3
| | | | | | | | | | special-case optimizations on several platforms and is preferred. Reported by: dim (indirectly) MFC after: 2 weeks Notes: svn path=/head/; revision=228962
* Further relax the strictness of enforcing allocations to only come fromJohn Baldwin2011-12-291-1/+10
| | | | | | | | | | | | | | | | | | | decoded ranges. Pass any request for a specific range that fails because it is not in a decoded range for an ACPI Host-PCI bridge up to the parent to see if it can still be allocated. This is based on the assumption that many BIOSes are inconsistent/broken and that settings programmed into BARs or resources assigned to other built-in components are more trustworthy than the list of decoded resource ranges in _CRS. This effectively limits the decoded ranges to only being used for "wildcard" ranges when allocating fresh resources for a BAR, etc. At some point I would like to only be this permissive during an early scan of firmware-assigned resources during boot and to be strict about all later allocations, but that isn't viable currently. MFC after: 2 weeks Notes: svn path=/head/; revision=228961
* Cap the priority calculated from the current thread's running tick countJohn Baldwin2011-12-291-1/+2
| | | | | | | | | | | | at SCHED_PRI_RANGE to prevent overflows in the priority value. This can happen due to irregularities with clock interrupts under certain virtualization environments. Tested by: Larry Rosenman ler lerctr org MFC after: 2 weeks Notes: svn path=/head/; revision=228960
* Don't fallback to a CARP address in BACKUP state.Gleb Smirnoff2011-12-291-1/+3
| | | | Notes: svn path=/head/; revision=228959
* Regen.John Baldwin2011-12-2910-20/+128
| | | | Notes: svn path=/head/; revision=228958
* Implement linux_fadvise64() and linux_fadvise64_64() usingJohn Baldwin2011-12-297-8/+75
| | | | | | | | | | kern_posix_fadvise(). Reviewed by: silence on emulation@ MFC after: 2 weeks Notes: svn path=/head/; revision=228957
* Fix typo in comment.Robert Watson2011-12-291-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=228956
* Don't define static_assert for C++.Ed Schouten2011-12-291-1/+10
| | | | | | | | | | | | | | | | | | Even though _Static_assert() is pretty robust for C code, it cannot work correctly with C++ code. This is due to the fact that C++ template parameters may contain commas that are not enclosed in parentheses. For example: static_assert(foo<int, int>::bar == baz, "..."); This causes _Static_assert to be called with an excessive number of parameters. If you want to use static_assert in C++, just use a C++11 compiler. Reported on: current@, ports@ Notes: svn path=/head/; revision=228955
* Reencode files from latin1 to UTF-8.Ulrich Spörlein2011-12-297-7/+7
| | | | Notes: svn path=/head/; revision=228953
* Update LOCKLEAF comment: it should say "vnode".Sergey Kandaurov2011-12-291-1/+1
| | | | | | | Inspired by PR docs/11596. Notes: svn path=/head/; revision=228952
* Add PCI Id for the Intel AMT serial interface as found on my DQ67OW.Konstantin Belousov2011-12-291-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=228947
* I'm not yet an alumni, add myself in the right sectionBaptiste Daroussin2011-12-291-1/+1
| | | | | | | Approved by: des (mentor) Notes: svn path=/head/; revision=228946
* Flesh out the RSPRO GPIO config, including the RF LED.Adrian Chadd2011-12-292-0/+22
| | | | Notes: svn path=/head/; revision=228945
* Break out the AR71XX config file into _BASE and board specificAdrian Chadd2011-12-2910-123/+291
| | | | | | | | | | | | | | | | | | | | | bits. The ROUERSTATION and RSPRO variants contain: * the board specific bits (eg the RTC for RSPRO, later on it'll include the GPIO/LED definitions); * the boot specific bits (eg, on-board flash, usb flash, etc). For now the AR71XX_BASE file contains the common board config, drivers and net80211/ath wireless drivers. I'll follow this up with config files for the other boards I have (eg the Ubiquiti LSSR71, as well as some Mikrotik boards that use the AR71XX and atheros reference boards) which will be quite easy to do now. Notes: svn path=/head/; revision=228944
* sh: Allow quoting ^ and ] in bracket expressions.Jilles Tjoelker2011-12-282-4/+16
| | | | Notes: svn path=/head/; revision=228943
* sh: Use dirent.d_type in pathname generation.Jilles Tjoelker2011-12-281-0/+4
| | | | | | | | | This improves performance for globs where a slash or another component follows a component with metacharacters by eliminating unnecessary attempts to open directories that are not. Notes: svn path=/head/; revision=228942
* sh: Cache de->d_namlen in a local variable.Jilles Tjoelker2011-12-281-6/+8
| | | | Notes: svn path=/head/; revision=228941
* Import the first release of HighPoint RocketRAID 27xx SAS 6Gb/s HBA cardXin LI2011-12-2824-0/+44951
| | | | | | | | | | | driver. This driver works for FreeBSD/i386 and FreeBSD/amd64 platforms. Many thanks to HighPoint for providing this driver. MFC after: 2 weeks Notes: svn path=/head/; revision=228940
* Set maximum I/O size for mps(4) to MAXPHYS. Looking into the code, I seeAlexander Motin2011-12-281-0/+1
| | | | | | | | | | | no reason why it should be limited to 64K of DFLTPHYS. DMA data tag is any way set to allow MAXPHYS, S/G lists (chain elements) are sufficient and overflows are also handled. On my tests even 1MB I/Os are working fine. Reviewed by: ken@ Notes: svn path=/head/; revision=228939
* 1. Correct capitalization of the nobility particle forDoug Barton2011-12-281-9/+9
| | | | | | | | | | | | | | Francois de La Rochefoucauld introduced in r228909 [1],[2] 2. Change c-cedilla introduced in the same commit to ASCII c since non-UTF-8 terminals will choke on the non-ASCII text. [2],[3] Pointed out by: bf [1] Reviewed by: French-speakers on #bsdcode [2] Requested by: uqs [3] Notes: svn path=/head/; revision=228938
* sh: Do not force special builtins non-special in optimized command subst.Jilles Tjoelker2011-12-281-2/+1
| | | | | | | | | | | | This is not necessary: errors are already caught in evalbackcmd() and forcelocal handles changes to variables. Note that this depends on r223024. MFC after: 4 weeks Notes: svn path=/head/; revision=228937
* Optimize vm_object_split()'s handling of reservations.Alan Cox2011-12-281-0/+15
| | | | Notes: svn path=/head/; revision=228936
* Fix a bug in the Xen pmap's implementation of pmap_extract_and_hold():Alan Cox2011-12-283-9/+14
| | | | | | | | | | If the page lock acquisition is retried, then the underlying thread is not unpinned. Wrap nearby lines that exceed 80 columns. Notes: svn path=/head/; revision=228935
* Prefer ASCII apostrophes over Unicode ones like the rest of the file.Ulrich Spörlein2011-12-281-1/+1
| | | | Notes: svn path=/head/; revision=228934
* Add myself as a src committerBaptiste Daroussin2011-12-281-0/+2
| | | | | | | Approved by: des (mentor) Notes: svn path=/head/; revision=228933
* Oops, if we want to check from 0 to nsock, the test condition should beOlivier Houchard2011-12-281-1/+1
| | | | | | | | | | < nsock, not >. Pointy hat to: cognet Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me> Notes: svn path=/head/; revision=228927
* Fix incorrect uses of sizeof().Kevin Lo2011-12-286-8/+8
| | | | | | | | The details of the fix can be found in the tcpdump git repository: commit 684955d58611ee94eccdc34e82b32e676337188c Notes: svn path=/head/; revision=228926
* - Add generic GPIO driver for Cavium Octeon. At the moment pin definition isOleksandr Tymoshenko2011-12-283-0/+551
| | | | | | | hardcoded but will be changed later with more flexible way to define them. Notes: svn path=/head/; revision=228925
* In POSIX.1-2008:Xin LI2011-12-281-1/+1
| | | | | | | | | | | | | P_tmpdir [OB XSI] Default directory prefix for tempnam(). This macro is used in a lot of places in legacy applications, and is why we see a lot of programs written for e.g. Linux store volatile temporary files in /var/tmp and not /tmp. MFC after: 2 months Notes: svn path=/head/; revision=228924
* Eliminate many of the unnecessary differences between the native andAlan Cox2011-12-272-141/+178
| | | | | | | | | | | | paravirtualized pmap implementations for i386. This includes some style fixes to the native pmap and several bug fixes that were not previously applied to the paravirtualized pmap. Tested by: sbruno MFC after: 3 weeks Notes: svn path=/head/; revision=228923
* libc: Eliminate some relative relocations in getusershell().Jilles Tjoelker2011-12-271-8/+7
| | | | Notes: svn path=/head/; revision=228922
* libc: Eliminate some relative relocations in setlocale().Jilles Tjoelker2011-12-271-1/+1
| | | | Notes: svn path=/head/; revision=228921
* Document restriction on 32-bits and 64-bits datatypes.Ed Schouten2011-12-271-0/+6
| | | | Notes: svn path=/head/; revision=228920
* Add locally implemented atomic intrinsics to libcompiler_rt.Ed Schouten2011-12-2717-0/+204
| | | | | | | | | | | | | | | | | | | The built-in atomic operations are not implemented in our version of GCC 4.2 for the ARM and MIPS architectures. Instead of emitting locked instructions, they generate calls to functions that can be implemented in the C runtime. Only implement the atomic operations that are used by <stdatomic.h> for datatype sizes that are supported by atomic(9). This means that on these architectures, we can only use atomic operations on 32-bits and 64-bits variables, which is typically sufficient. This makes <stdatomic.h> work on all architectures except MIPS, since MIPS and SPARC64 still use libgcc. Converting these architectures to libcompiler_rt is on my todo list. Notes: svn path=/head/; revision=228919
* Define NULL to nullptr in C++11 mode (not strictly required, but it makesDavid Chisnall2011-12-271-1/+3
| | | | | | | | | migrating code to C++11 easier). Approved by: dim (mentor) Notes: svn path=/head/; revision=228918
* - Fail when the utility is not invoked as rtprio nor idprio.Xin LI2011-12-271-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | - use warnx() to tell the user whether a process is running in normal, idle or realtime priority. with the old code it would have been possible for another process to send data to stdout between printf("%s: ", p); and printf("* priority\n"); and thus break the formatting. - 'rtprio 10 -0' triggeres non-intuitive behavior. It would first set the priority of itself to 10 *and* would then try to execute '-0'. Of course, setting the priority of [id|rt]prio itself doesn't make a lot of sense, but it is intuitive compared to the previous behavior. - 'rtprio -t --1' will actually pass over the '-1' to rtprio(). Now invoking rtprio like this will catch the wrong usage before passing over the invalid argument to rtprio(). - Garrett Cooper suggested to add further diagnostics where the failure occures, if execvp fails. PR: bin/154042 Submitted by: arundel MFC after: 1 month Notes: svn path=/head/; revision=228917
* Clean up from the 4.x era.Sergey Kandaurov2011-12-271-3/+3
| | | | | | | | | | | | | | | In an example of boot command: - rename wd(4) IDE disk drives name to ad(4) for the time being. - update the used kernel path "/kernel" to the current default. [It still worked occasionally by looking into the /boot/kernel directory, so the resulting path was "/boot//kernel/kernel", with two slashes.] Bump .Dd for this and previous changes. MFC after: 1 week Notes: svn path=/head/; revision=228916
* Fix target mode compilation issues that arose after a changeMatt Jacob2011-12-272-28/+35
| | | | | | | | | in the sense data structures. MFC after: 1 week Notes: svn path=/head/; revision=228914
* Add missing \.Ed Schouten2011-12-271-1/+1
| | | | | | | While sorting the MLINKS by name, I forgot to re-add it. Notes: svn path=/head/; revision=228913
* Add manual page for atomic operations.Ed Schouten2011-12-272-1/+319
| | | | Notes: svn path=/head/; revision=228912
* Update to vendor revision 4016.Martin Matuska2011-12-273-17/+94
|\ | | | | | | | | | | | | | | | | | | | | Vendor has integrated most of our local changes in revisions 3976-3979 so future updates are going to be easier. Thanks to Tim Kientzle <kientzle@FreeBSD.org>. MFC after: 8 days Notes: svn path=/head/; revision=228911
| * Update to vendor revision 4016Martin Matuska2011-12-271-3/+3
| | | | | | | | | | | | | | Obtained from: http://libarchive.googlecode.com/svn/release/2.8 Notes: svn path=/vendor/libarchive/dist/; revision=228908