summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use correct name 'us' for character 31 in keymapsemaste2016-01-029-21/+21
| | | | | | | | 'ns' was a historical accident, and kbdcontrol(1) has accepted the correct 'us' as well as 'ns' since r38139. PR: 205776 MFC after: 1 week
* Revert accidental change that snuck into r293045.ian2016-01-021-7/+0
|
* Make the 'env' directive described in config(5) work on all architectures,ian2016-01-0211-22/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | providing compiled-in static environment data that is used instead of any data passed in from a boot loader. Previously 'env' worked only on i386 and arm xscale systems, because it required the MD startup code to examine the global envmode variable and decide whether to use static_env or an environment obtained from the boot loader, and set the global kern_envp accordingly. Most startup code wasn't doing so. Making things even more complex, some mips startup code uses an alternate scheme that involves calling init_static_kenv() to pass an empty buffer and its size, then uses a series of kern_setenv() calls to populate that buffer. Now all MD startup code calls init_static_kenv(), and that routine provides a single point where envmode is checked and the decision is made whether to use the compiled-in static_kenv or the values provided by the MD code. The routine also continues to serve its original purpose for mips; if a non-zero buffer size is passed the routine installs the empty buffer ready to accept kern_setenv() values. Now if the size is zero, the provided buffer full of existing env data is installed. A NULL pointer can be passed if the boot loader provides no env data; this allows the static env to be installed if envmode is set to do so. Most of the work here is a near-mechanical change to call the init function instead of directly setting kern_envp. A notable exception is in xen/pv.c; that code was originally installing a buffer full of preformatted env data along with its non-zero size (like mips code does), which would have allowed kern_setenv() calls to wipe out the preformatted data. Now it passes a zero for the size so that the buffer of data it installs is treated as non-writeable.
* Accidentally dropped the 0 padding.jhibbits2016-01-011-1/+1
| | | | Pointed out by: cmeyer
* Unset the gss kernel state when gssd exitsjpaetzel2016-01-012-8/+13
| | | | | | | | | | | | | | When gssd exits it leaves the kernel state set by gssd_syscall(). nfsd sees this and waits endlessly in an unkillable state for gssd to come back. If you had acidentally started gssd then stopped it, then started nfsd you'd be in a bad way until you either restarted gssd or rebooted the system. This change fixes that by setting the kernel state to "" when gssd exits. Reviewed by: rmacklem MFC after: 1 week Sponsored by: iXsystems
* Minor style cleanup.kib2016-01-011-1/+1
| | | | | Submitted by: bde MFC after: 1 week
* Use uint32_t for LBC block size.jhibbits2016-01-011-3/+3
| | | | | | LBC block size can only be up to 4GB. The existing code already clamps it, but mixes unsigned long and uint32_t. This works on 32-bit targets, but not 64-bit, so isn't completely correct. This fixes the type confusion.
* Reduce libstand Makefile duplicationemaste2016-01-012-140/+13
| | | | | | | | | | | | | | | | libstand is built in three places (lib/libstand, sys/boot/libstand32, and sys/boot/userboot/libstand). Reduce Makefile duplication by .including libstand/Makefile from sys/boot/libstand32/Makefile. sys/boot/userboot/libstand/Makefile will be addressed later, as it contains additional differences yet to be handled. This change also switches libstand32 to use the new uuid_from_string and uuid_to_string, which was not included in r292473. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4747
* Fix a couple printf formats.jhibbits2016-01-012-2/+3
| | | | This was found when working on 64-bit PowerPC book-e support.
* Use lltable_get_ifp() instead of direct access to lltable fields.melifaro2016-01-011-2/+4
|
* Update leap-seconds to latest. This will satisfy the ntpd leap-secondcy2016-01-011-116/+218
| | | | | | | version check. Obtained from: ftp://tycho.usno.navy.mil/pub/ntp/. See also: http://www.iers.org/SharedDocs/News/EN/BulletinC.html
* Remove second EVENTHANDLER_REGISTER slipped in r292978.melifaro2016-01-012-3/+4
| | | | Describe the reason of doing unconditional M_PREPEND in ether_output().
* 17 years and change after I wrote warp_saver, here's a simple plasma effectdes2016-01-016-1/+475
| | | | | (currently only three circular patterns) which requires quite a bit of fixed-point arithmetic, including sqrt() and cos(). Happy New Year!
* In the unload target, check that the module is loaded first.des2016-01-011-1/+12
| | | | Add a reload target which unloads and then loads the module.
* Use randomly generated device names in testcases via mktemp -u instead of usingngie2016-01-015-5/+5
| | | | | | | the hardcoded device name, "test" MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Extend idle support for newer Book-E cores.jhibbits2016-01-016-12/+84
| | | | | | | | Newer Book-E cores (e500mc, e5500, e6500) do not support the WE bit in the MSR, and instead delegate CPU idling to the SoC. Perhaps in the future the QORIQ_DPAA option for the mpc85xx platform will become a subclass, which will eliminate most of the #ifdef's.
* Add functions for managing md(4) devices and cleaning up said md(4) devicesngie2016-01-011-0/+29
| | | | | | | These will be used soon in the various test scripts that source geom_subr.sh MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* - Use geom <class> load instead of g<class> load; g<class> doesn't existngie2016-01-011-1/+6
| | | | | | | | for all geom classes, e.g. geom_uzip(4) - These tests require root. Skip all of the tests if they're run as non-root MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* [net80211] document the (not completely complete) set of places whereadrian2016-01-013-1/+4
| | | | | | | | | | | | | | | | we're assuming hz=1000 and not gracefully handling when it isn't. The math involved will return 0 for hz < 1000, which it is on some platforms and on DragonflyBSD. This doesn't fix it, it: * converts one manual use over to use the macro, and * comments where it needs some thought/fixing. I'll think about this a bit more before fixing it. Submitted by: imre@vdsz.com
* Unify the ELFv1 and ELFv2 code paths and make ELFv1 (the normal ABI) morenwhitehorn2016-01-012-39/+33
| | | | | | correct in the process. MFC after: 2 weeks
* [rtwn] add rtwn module directory.adrian2015-12-311-0/+8
| | | | Pointed out by: dim
* Merge r293013 from clang380-import branch:dim2015-12-311-1/+1
| | | | | | | | | | | | | | Fix a clang 3.8.0 warning in pflogd.c: contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses] if (!if_exists(interface) == -1) { ^ ~~ The if_exists() function does not return -1, and even if it did, it would not be the correct way to check. Just ditch the == -1 instead. Obtained from: OpenBSD's pflogd.c 1.49 MFC after: 3 days
* Merge r293006 from clang380-import branch:dim2015-12-311-1/+1
| | | | | | | | | | | | For determining the compiler version, quote the string to be echo'd, otherwise the command might fail. This is because clang -v now results in the following: FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn) The second "3.8.8svn)" string tripped up the shell command. MFC after: 3 days
* [rtwn] Add initial manpages for the rtwn driver.adrian2015-12-313-0/+241
|
* [rtwn] Add rtwn firmware and driver module.adrian2015-12-315-0/+34
| | | | Submitted by: kevlo
* [rtwn] bring over initial rtwn driver.adrian2015-12-312-0/+5596
| | | | | | | This is a port from openbsd. It's incomplete and unstable, but it's better than nothing. I have no plans to MFC this until it's complete and stable. Submitted by: kevlo
* [rtwn] add rtwn firmware.adrian2015-12-313-0/+738
| | | | Submitted by: kevlo
* sh: Remove redundant CTLQUOTEMARK checks.jilles2015-12-311-18/+2
| | | | | | | | With the new expand.c code, the intermediate representation passed to the pathname generation code only contains CTLESC, not CTLQUOTEMARK. CTLQUOTEMARK now only occurs in the text of NARG nodes (output of the parser).
* Introduce the ZFS Boot Environments menu to the loader menuallanjude2015-12-318-7/+423
| | | | | | | | | | | | | | | | | | If the system was booted with ZFS, a new menu item (#7) appears It contains an autogenerated list of ZFS Boot Environments This allows the user to switch to an alternate root file system Use Cases: - Revert a failed upgrade - Concurrently run different versions of FreeBSD with common home directory - Easier integration with the sysadmin/beadm utility Requested by: many Reviewed by: dteske MFC after: 10 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3167
* Remove supposition comment that code would better live elsewhere.dteske2015-12-311-1/+1
| | | | | | | | | | Thinking this through, and looking at process_assignment, I believe moving the code would be wrong considering that set_conf_files is called in one condition while set_nextboot_conf is guarded by a different condition of having nextboot_enable="YES". So these must stay separated and not combined. MFC after: 1 week
* Fix a memory leak. nextboot_conf_file is not volatile, as far as Idteske2015-12-311-1/+1
| | | | | | | can tell, and thus the strdup is entirely unnecessary. Thanks to: Toomas Soome (tsoome at-me dot-com) MFC after: 1 week
* newvers.sh: put variable assignments on separate linesemaste2015-12-311-1/+4
| | | | | This makes it easier to grep for where they're set, and may simplify future merging for FreeBSD derivatives that change these.
* Remove debugging messages. NB: SVN r187143 reads:dteske2015-12-311-3/+0
| | | | | | | comment out some debugging messages that slipped in by mistake (removing them 7 years after they have been commented out) MFC after: 1 week
* sh: Reindent expandmeta().jilles2015-12-311-21/+21
|
* sh: Perform pathname generation during the first expansion phases.jilles2015-12-312-52/+57
| | | | | | | | This avoids the need to add and remove CTLESC bytes if pathname generation will not be performed (set -f). Side effect: the order of operations is slightly different: pathname generation in ${$+* $(CMD)} will not see filesystem changes from CMD.
* When building libstand for arm, don't emit instructions that requireian2015-12-311-0/+6
| | | | | | relocation fixups unsupported by the self_reloc() code, and don't optimize memcpy/memset using floating point registers, because in a standalone environment nothing has initialized the fpu hardware.
* Add suppoort for the Sitecom LN-031kp2015-12-312-0/+2
| | | | | This is an AX88178 chip, which we already support so all we have to do is add the USB product and vendor ID.
* sh: Perform IFS splitting during the first expansion phases.jilles2015-12-311-362/+253
| | | | | | | | | This simplifies the code and should be faster in some cases. Side effect: the order of operations is different so that the value of IFS used when IFS is modified during expansion (${IFS:=...}, ${IFS=...} or $((...IFS=...))) may be different. Note that this order is highly unportable between shells.
* Handle when filedescriptors are closed before initialized. An earlyhselasky2015-12-311-3/+4
| | | | | | | | | | fdclose() call can cause fget_unlocked() to fail. Found by: mjg @ MFC after: 1 week Reviewed by: Mark Block <markb@mellanox.com> Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4351
* Minor LinuxKPI code cleanup:hselasky2015-12-316-182/+192
| | | | | | | | | | | | | - Declare some static functions in linux_compat.c instead if inside various header files. - Prefix FreeBSD local functions in the LinuxKPI with "linux_" to avoid symbol name conflicts in the future and to make debugging easier. - Make the "struct kobj_ktype" declaractions constant to shave off a few bytes from the data segment. MFC after: 1 week Sponsored by: Mellanox Technologies
* Make the kobject refcounting compliant with Linux. Refcounting on thehselasky2015-12-312-4/+8
| | | | | | | | parent kobject cannot be factored out and must be done by the kobject consumers. MFC after: 1 week Sponsored by: Mellanox Technologies
* Bump copyright year.bz2015-12-312-3/+3
| | | | Happy New Year 2016!
* Remove unused variable after r292981 to unbreak the build.bz2015-12-311-1/+1
|
* Clean up unused-but-set-variable spotted by gcc-4.9.araujo2015-12-311-5/+2
| | | | | | Reviewed by: grehan Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4734
* Clean up unused-but-set-variable spotted by gcc4.9.araujo2015-12-311-2/+0
| | | | | | Reviewed by: ngie Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4719
* Implement interface link header precomputation API.melifaro2015-12-3122-213/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add if_requestencap() interface method which is capable of calculating various link headers for given interface. Right now there is support for INET/INET6/ARP llheader calculation (IFENCAP_LL type request). Other types are planned to support more complex calculation (L2 multipath lagg nexthops, tunnel encap nexthops, etc..). Reshape 'struct route' to be able to pass additional data (with is length) to prepend to mbuf. These two changes permits routing code to pass pre-calculated nexthop data (like L2 header for route w/gateway) down to the stack eliminating the need for other lookups. It also brings us closer to more complex scenarios like transparently handling MPLS nexthops and tunnel interfaces. Last, but not least, it removes layering violation introduced by flowtable code (ro_lle) and simplifies handling of existing if_output consumers. ARP/ND changes: Make arp/ndp stack pre-calculate link header upon installing/updating lle record. Interface link address change are handled by re-calculating headers for all lles based on if_lladdr event. After these changes, arpresolve()/nd6_resolve() returns full pre-calculated header for supported interfaces thus simplifying if_output(). Move these lookups to separate ether_resolve_addr() function which ether returs error or fully-prepared link header. Add <arp|nd6_>resolve_addr() compat versions to return link addresses instead of pre-calculated data. BPF changes: Raw bpf writes occupied _two_ cases: AF_UNSPEC and pseudo_AF_HDRCMPLT. Despite the naming, both of there have ther header "complete". The only difference is that interface source mac has to be filled by OS for AF_UNSPEC (controlled via BIOCGHDRCMPLT). This logic has to stay inside BPF and not pollute if_output() routines. Convert BPF to pass prepend data via new 'struct route' mechanism. Note that it does not change non-optimized if_output(): ro_prepend handling is purely optional. Side note: hackish pseudo_AF_HDRCMPLT is supported for ethernet and FDDI. It is not needed for ethernet anymore. The only remaining FDDI user is dev/pdq mostly untouched since 2007. FDDI support was eliminated from OpenBSD in 2013 (sys/net/if_fddisubr.c rev 1.65). Flowtable changes: Flowtable violates layering by saving (and not correctly managing) rtes/lles. Instead of passing lle pointer, pass pointer to pre-calculated header data from that lle. Differential Revision: https://reviews.freebsd.org/D4102
* Wrap using #ifdef 'notyet' those variables and statements not yetaraujo2015-12-311-4/+18
| | | | | | | | | | implemented to lower the compiler warnings. It fix the case of unused-but-set-variable spotted by gcc4.9. Reviewed by: ngie, ae Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4720
* Clean up unused-but-set-variable spotted by gcc-4.9.araujo2015-12-311-5/+0
| | | | | Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4736
* Clean up unused-but-set-variable spotted by gcc-4.9.araujo2015-12-311-2/+1
| | | | | | Reviewed by: grehan Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4735
* Clean up unused-but-set-variable spotted by gcc-4.9.araujo2015-12-311-2/+0
| | | | | | Reviewed by: royger Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4733
OpenPOWER on IntegriCloud