aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mdoc cleanup; fix spelling; Xref ixlv.4Christian Brueffer2015-03-251-11/+14
| | | | Notes: svn path=/head/; revision=280574
* Fix a typo and EOL whitespace missed in the previous commit.Christian Brueffer2015-03-251-3/+3
| | | | Notes: svn path=/head/; revision=280573
* mdoc cleanup; fix spelling.Christian Brueffer2015-03-251-7/+6
| | | | Notes: svn path=/head/; revision=280572
* Remove a debug #error from the bcm2835 sdhci driver.Andrew Turner2015-03-251-1/+0
| | | | Notes: svn path=/head/; revision=280571
* Add support for the Raspberry Pi 2. As the chip is based on the bcm2835 inAndrew Turner2015-03-258-2/+435
| | | | | | | | | | | | | | | | | | | | the Raspberry Pi B we support most of the devices are already supported, however the base address has changed. A few items are not working, or missing. The main ones are: * DMA doesn't work in the sdhci driver. * Enabling vchiq halts the boot, may be interrupt related. * There is no U-Boot port yet so the DTB is embedded in the kernel. The last point will make it difficult to boot FreeBSD, however there is support for the Raspberry Pi 2 in the U-Boot git repo. As I have not tested this it is left as an open task to create a port to build. X-MFC: When the above issues are fixed Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=280558
* Add the Raspberry Pi 2 dtb, based on the existing rpi.dts, but with aAndrew Turner2015-03-253-1/+858
| | | | | | | | | different base address for the devces. MFC after: 1 week Notes: svn path=/head/; revision=280520
* Implement a simple OID number garbage collector. Given the increasingHans Petter Selasky2015-03-251-16/+47
| | | | | | | | | | | | | | | | | | number of dynamically created and destroyed SYSCTLs during runtime it is very likely that the current new OID number limit of 0x7fffffff can be reached. Especially if dynamic OID creation and destruction results from automatic tests. Additional changes: - Optimize the typical use case by decrementing the next automatic OID sequence number instead of incrementing it. This saves searching time when inserting new OIDs into a fresh parent OID node. - Add simple check for duplicate non-automatic OID numbers. MFC after: 1 week Notes: svn path=/head/; revision=280495
* Bump .DdEnji Cooper2015-03-241-1/+1
| | | | Notes: svn path=/head/; revision=280476
* The number of commands added when ddb(4) is enabled is 3, not 2Enji Cooper2015-03-241-1/+1
| | | | | | | | MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=280475
* Remove some #if 0'ed code that apparently confuses cscope.Kenneth D. Merry2015-03-241-7/+1
| | | | | | | | Requested by: Peter Xu <xzpeter@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=280463
* Fix two bugs which resulted in a screwed up end point list:Michael Tuexen2015-03-242-8/+9
| | | | | | | | | | | * Use a save way to walk throught a list while manipulting it. * Have to appropiate locks in place. Joint work with rrs@ MFC after: 3 days Notes: svn path=/head/; revision=280459
* Introduce nonnull attributes in the signal and pthread headers.Pedro F. Giffuni2015-03-242-62/+79
| | | | | | | | | | | | | | | | The `nonnull' attribute specifies that some function parameters should be non-null pointers. This is very useful as it helps the compiler generate warnings on suspicious code and can also enable some small optimizations. In clang this is also useful for the static analyzer. While we could go on defining this all over the tree, it only makes sense to annotate a subset of critical functions. Hinted by: Android's bionic libc Differential Revision: https://reviews.freebsd.org/D2101 Notes: svn path=/head/; revision=280458
* Use TUNABLE_INT_FETCH for boot_pages.Rui Paulo2015-03-241-2/+4
| | | | | | | | | | | | vm.boot_pages is marked as a CTLFLAG_RDTUN, but it's used by the VM before the sysctl subsystem is initialsed. We manually fetch the variable from the environment to work around this problem. Tested by: Keith White kwhite at uottawa.ca MFC after: 1 week Notes: svn path=/head/; revision=280457
* Remove whitespace.Rui Paulo2015-03-241-18/+18
| | | | Notes: svn path=/head/; revision=280456
* Move including std.bcm2835 to the RPI-B kernel config. The std.rpi fileAndrew Turner2015-03-242-2/+1
| | | | | | | | | | will be shared between the existing Raspberry Pi config, and the new Raspberry Pi 2 config. MFC after: 1 week Notes: svn path=/head/; revision=280453
* Add the SOC_BCM2835 and SOC_BCM2836 options for the arm kernel and add theAndrew Turner2015-03-242-0/+3
| | | | | | | | | | former to std.bcm2835. These will be used to enable support for the Raspberry Pi 2. MFC after: 1 week Notes: svn path=/head/; revision=280452
* Remove from legacy ata(4) driver support for hardware, supported by newerAlexander Motin2015-03-2425-3438/+34
| | | | | | | | | and more functional drivers ahci(4), siis(4) and mvs(4). This removes about 3400 lines of code, unused since FreeBSD 9.0 release. Notes: svn path=/head/; revision=280451
* Make sure tunable sysctls are only fetched once. The existing code canHans Petter Selasky2015-03-241-0/+3
| | | | | | | | re-register sysctls when destroying sysctl contexts or when moving sysctls from one tree to another. Notes: svn path=/head/; revision=280450
* When fetching an instruction in non-64bit mode, consider the value of theTycho Nightingale2015-03-245-6/+20
| | | | | | | | | | | | code segment base address. Also if an instruction doesn't support a mod R/M (modRM) byte, don't be concerned if the CPU is in real mode. Reviewed by: neel Notes: svn path=/head/; revision=280447
* Do not include if_var.h and in6_var.h into kern_jail.c. It is now possibleGleb Smirnoff2015-03-241-4/+0
| | | | | | | | | after r280444. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=280445
* Move ip6_sprintf() declaration from in6_var.h to in6.h. This is a simpleGleb Smirnoff2015-03-242-1/+1
| | | | | | | | | | function that works with in6_addr and it is not related to the INET6 stack implementation. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=280444
* Correct string pointer offset for error printout.Hans Petter Selasky2015-03-241-1/+1
| | | | Notes: svn path=/head/; revision=280443
* Make all PCM core sysctls tunable and remove redundant TUNABLE()Hans Petter Selasky2015-03-248-94/+87
| | | | | | | | | | statements. This allows for setting all PCM core parameters in the kernel environment through loader.conf(5) or kenv(1) which is useful for pluggable PCM devices like USB audio devices which might be plugged after that sysctl.conf(5) is executed. Notes: svn path=/head/; revision=280442
* The addition of flowid and flowtype in r280233 and r280237 respectively forgotLawrence Stewart2015-03-241-1/+1
| | | | | | | | | | to extend the IPv6 packet node format string, which causes a build failure when SIFTR is compiled with IPv6 support. Reported by: Lars Eggert Notes: svn path=/head/; revision=280441
* Fix the bug in the handling of fragmented abandoned SCTP user messages ↵Michael Tuexen2015-03-241-3/+5
| | | | | | | | | | | reported in https://code.google.com/p/sctp-refimpl/issues/detail?id=11 Thanks to Lally Singh for reporting it. MFC after: 3 days Notes: svn path=/head/; revision=280440
* Fix an accounting bug related to the per stream chunk counter.Michael Tuexen2015-03-241-6/+2
| | | | | | | | | While there, don't refer to a net articifically. MFC after: 3 days Notes: svn path=/head/; revision=280439
* Adda minimal gcc config. This is just enough to build the bits of csu weAndrew Turner2015-03-242-0/+9
| | | | | | | | | get from gcc, and libgcc_eh. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=280437
* Add the openssl header for arm64. As it is based on MACHINE_CPUARCH itAndrew Turner2015-03-241-0/+242
| | | | | | | | | is named opensslconf-aarch64.h. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=280436
* When mapping an allocated entry, use the entry size, instead of theKonstantin Belousov2015-03-241-1/+1
| | | | | | | | | | | | requested size. If tag restrictions caused split entry, its size is less then requsted. Hardware provided by: Michael Fuckner <michael@fuckner.net> Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=280435
* Assert that the mapping loop makes progress.Konstantin Belousov2015-03-241-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=280434
* sfxge: cleanup: fix index variable type to match upper boundary typeAndrew Rybchenko2015-03-241-1/+1
| | | | | | | Sponsored by: Solarflare Communications, Inc. Notes: svn path=/head/; revision=280433
* sfxge: cleanup: add a blank line before each #if to improve readabilityAndrew Rybchenko2015-03-241-0/+7
| | | | | | | Sponsored by: Solarflare Communications, Inc. Notes: svn path=/head/; revision=280432
* sfxge: cleanup: remove trailing whitespacesAndrew Rybchenko2015-03-241-2/+2
| | | | | | | Sponsored by: Solarflare Communications, Inc. Notes: svn path=/head/; revision=280431
* Make ix_crcstrip a public symbol for the moment; it probably is notBjoern A. Zeeb2015-03-241-1/+2
| | | | | | | | | | | | | | | | | the right solution but I will leave it to experts to untangle this problem to properly stop the build failures. At the moment only if_ix.c includes dev/netmap/ixgbe_netmap.h which is good as ixgbe_netmap.h defines a couple of (file) static variables--thus local to if_ix.c. static int ix_crcstrip however now also got checked from ix_txrx.c (as an extern) and should not be visible there. In fact we do see powerpc and powerpc64 build failures because of this. It is unclear to me why on other (clang built?) architectures this does not lead to a reference of an undefined symbol and similar build breakage. Notes: svn path=/head/; revision=280430
* Use the feedback value from the synchronization endpoint as fallbackHans Petter Selasky2015-03-241-0/+7
| | | | | | | | | | when there is no recording channel. MFC after: 3 days PR: 198444 Notes: svn path=/head/; revision=280429
* MFV of 280411,tzdata{2015b}Edwin Groothuis2015-03-246-53/+64
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release 2015b - 2015-03-19 23:28:11 -0700 Changes affecting future time stamps Mongolia will start observing DST again this year, from the last Saturday in March at 02:00 to the last Saturday in September at 00:00. (Thanks to Ganbold Tsagaankhuu.) Palestine will start DST on March 28, not March 27. Also, correct the fall 2014 transition from September 26 to October 24. Adjust future predictions accordingly. (Thanks to Steffen Thorsen.) Changes affecting past time stamps The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a regression. (Thanks to Stuart Bishop for reporting the problem.) Some more zones have been turned into links, when they differed from existing zones only for older time stamps. As usual, these changes affect UTC offsets in pre-1970 time stamps only. Their old contents have been moved to the 'backzone' file. The affected zones are: America/Antigua, America/Cayman, Pacific/Midway, and Pacific/Saipan. Changes affecting time zone abbreviations Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD". (Thanks to Hank W.) Notes: svn path=/head/; revision=280413
| * Vendor import of tzdata2015b:vendor/tzdata/tzdata2015bEdwin Groothuis2015-03-246-53/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release 2015b - 2015-03-19 23:28:11 -0700 Changes affecting future time stamps Mongolia will start observing DST again this year, from the last Saturday in March at 02:00 to the last Saturday in September at 00:00. (Thanks to Ganbold Tsagaankhuu.) Palestine will start DST on March 28, not March 27. Also, correct the fall 2014 transition from September 26 to October 24. Adjust future predictions accordingly. (Thanks to Steffen Thorsen.) Changes affecting past time stamps The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a regression. (Thanks to Stuart Bishop for reporting the problem.) Some more zones have been turned into links, when they differed from existing zones only for older time stamps. As usual, these changes affect UTC offsets in pre-1970 time stamps only. Their old contents have been moved to the 'backzone' file. The affected zones are: America/Antigua, America/Cayman, Pacific/Midway, and Pacific/Saipan. Changes affecting time zone abbreviations Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD". (Thanks to Hank W.) Obtained from: ftp://ftp.iana.org/tz/releases/ Notes: svn path=/vendor/tzdata/dist/; revision=280411 svn path=/vendor/tzdata/tzdata2015b/; revision=280412; tag=vendor/tzdata/tzdata2015b
* | Disable coredump_devctl because it could lead to leaking paths toRui Paulo2015-03-241-1/+1
| | | | | | | | | | | | | | jails. Notes: svn path=/head/; revision=280410
* | filedesc: microoptimize fget_unlocked by getting rid of fd < 0 branchMateusz Guzik2015-03-241-1/+1
| | | | | | | | | | | | | | | | Casting fd to an unsigned type simplifies fd range coparison to mere checking if the result is bigger than the table. Notes: svn path=/head/; revision=280407
* | When an ICMP message is received and the MTU shrinks, onlyMichael Tuexen2015-03-231-13/+11
| | | | | | | | | | | | | | | | | | mark outstanding chunks for retransmissions. MFC after: 3 days Notes: svn path=/head/; revision=280404
* | cxgbe(4): Do not call sbuf_trim on an sbuf with a drain function.Navdeep Parhar2015-03-231-4/+7
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=280403
* | Do not save/restore the TLS pointer on context switch for armv6. TheIan Lepore2015-03-233-18/+12
| | | | | | | | | | | | | | | | | | | | pointer cannot be changed directly by userland code on armv6 (it can be on armv4), so there's no need to save/restore. Submitted by: Michal Meloun Notes: svn path=/head/; revision=280402
* | Add llvm patch corresponding to r280400.Dimitry Andric2015-03-231-0/+419
| | | | | | | | Notes: svn path=/head/; revision=280401
* | Pull in r230348 from upstream llvm trunk (by Tim Northover):Dimitry Andric2015-03-235-71/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ARM: treat [N x i32] and [N x i64] as AAPCS composite types The logic is almost there already, with our special homogeneous aggregate handling. Tweaking it like this allows front-ends to emit AAPCS compliant code without ever having to count registers or add discarded padding arguments. Only arrays of i32 and i64 are needed to model AAPCS rules, but I decided to apply the logic to all integer arrays for more consistency. This fixes a possible "Unexpected member type for HA" error when compiling lib/msun/bsdsrc/b_tgamma.c for armv6. Reported by: Jakub Palider <jpa@semihalf.com> Notes: svn path=/head/; revision=280400
* | Reduce priority of ATA/SATA drivers.Alexander Motin2015-03-2331-35/+35
| | | | | | | | | | | | | | | | | | | | Legacy ata(4) -> BUS_PROBE_LOW_PRIORITY; more functional ahci(4), siis(4), mvs(4) -> BUS_PROBE_DEFAULT; BUS_PROBE_VENDOR leave for vendor drivers. MFC after: 2 weeks Notes: svn path=/head/; revision=280393
* | Be consistent with M_ZERO when allocating ccbs.Benno Rice2015-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are four places, all in cam_xpt.c, where ccbs are malloc'ed. Two of these use M_ZERO, two don't. The two that don't meant that allocated ccbs had trash in them making it hard to debug errors where they showed up. Due to this, use M_ZERO all the time when allocating ccbs. Submitted by: Scott Ferris <scott.ferris@isilon.com> Sponsored by: EMC/Isilon Storage Division Reviewed by: scottl, imp Differential: https://reviews.freebsd.org/D2120 Notes: svn path=/head/; revision=280388
* | xlint: update.Pedro F. Giffuni2015-03-2318-356/+868
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring some important updates from NetBSD up to about 2008/04/25. The main feature is initial support for C99. This is a very basic update to make it easier to merge new compiler attirbutes but more updates are likely to follow. Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=280387
* | cp,mv: Use futimens() instead of utimensat() if possible.Jilles Tjoelker2015-03-232-2/+2
| | | | | | | | Notes: svn path=/head/; revision=280386
* | Add missing variables password/bootlock_password.Devin Teske2015-03-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | NB: Using NULL for default values in-case someone or something uncomments it and reboots. See check-password.4th(8) for additional details. MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=280385
* | Increase max input for password/bootlock_password from 16 to 255.Devin Teske2015-03-231-44/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When taking user input, don't show asterisks as the user types but instead spin a twiddle. Implement Ctrl-U to clear user input. If the buffer is empty, either because the user has yet to type anything, presses Ctrl-U at any time, or presses backspace enough to end in an empty buffer, the twiddle is erased to provide feed- back to the user. MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=280384