aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add generation of memstick images to the bsdinstall release makefile forNathan Whitehorn2011-03-133-5/+100
| | | | | | | | | | i386 and amd64. This involved moving the memstick generation script to the arch directories from scripts/, in analogy to mkisoimages.sh. This script was never called from /usr/src/release/Makefile, so that hasn't been updated. Notes: svn path=/head/; revision=219584
* Fix grammar.Andrey V. Elsukov2011-03-121-2/+2
| | | | | | | | Pointed out: Ben Kaduk MFC after: 2 weeks Notes: svn path=/head/; revision=219581
* INET6 for some time needed in_pcb.c so make sure we compile it in case ofBjoern A. Zeeb2011-03-121-1/+1
| | | | | | | | | no inet. MFC after: 2 weeks Notes: svn path=/head/; revision=219580
* Merge the two identical implementations for local port selections fromBjoern A. Zeeb2011-03-123-134/+132
| | | | | | | | | in_pcbbind_setup() and in6_pcbsetport() in a single in_pcb_lport(). MFC after: 2 weeks Notes: svn path=/head/; revision=219579
* Use the allexport option in load_rc_config() in order to avoid havingDoug Barton2011-03-121-3/+3
| | | | | | | | | | | | | | | | | to repeatedly read the conf files. Depending on what is enabled the files are being read anywhere from 15, 30, or more times currently. By loading the values in the environment this is reduced to 1, with perhaps a couple more, again depending on what is enabled. The speed-up for boot and shutdown is negligible when rc.conf is on local disk, noticable when accessing files over NFS, and dramatic when pulling rc.conf values from a database. This change also includes a minor optimization to the conditional for $_rc_conf_loaded. Notes: svn path=/head/; revision=219578
* Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-122-6/+11
| | | | | | | | | | coherent. Approved by: gibbs MFC after: 2 weeks Notes: svn path=/head/; revision=219577
* Take two. Add the missing file that should have been committedSteve Kargl2011-03-123-1/+159
| | | | | | | | | | | | | | with r219571 and re-enable building of cbrtl. Implement the long double version for the cube root function, cbrtl. The algorithm uses Newton's iterations with a crude estimate of the cube root to converge to a result. Reviewed by: bde Approved by: das Notes: svn path=/head/; revision=219576
* Remove unneeded newline.Glen Barber2011-03-121-1/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219575
* Add example of using 'scan' for wireless networks, similarly toGlen Barber2011-03-121-0/+4
| | | | | | | | | | | OpenBSD's ifconfig(8). PR: 151952 Submitted by: Jared (rhyous of yahoo com) MFC after: 1 week Notes: svn path=/head/; revision=219574
* Document GEOM_PART_EBR_COMPAT option.Andrey V. Elsukov2011-03-121-1/+7
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=219573
* Temporary disable the building of cbrtl until ISteve Kargl2011-03-122-2/+1
| | | | | | | | | | can determine why svn will not allow one to commit a new file. Approved by: das (implicit) Notes: svn path=/head/; revision=219572
* Implement the long double version for the cube root function, cbrtl.Steve Kargl2011-03-126-18/+32
| | | | | | | | | | | The algorithm uses Newton's iterations with a crude estimate of the cube root to converge to a result. Reviewed by: bde Approved by: das Notes: svn path=/head/; revision=219571
* Push a possible "unbind" in some situation from in6_pcbsetport() toBjoern A. Zeeb2011-03-123-6/+9
| | | | | | | | | | | | callers. This also fixes a problem when the prison call could set the inp->in6p_laddr (laddr) and a following priv_check_cred() call would return an error and will allow us to merge the IPv4 and IPv6 implementation. MFC after: 2 weeks Notes: svn path=/head/; revision=219570
* Fix warnings and style(9) issues.Rebecca Cran2011-03-122-27/+33
| | | | | | | Set WARNS to 6. Notes: svn path=/head/; revision=219568
* Sync licenses and the corresponding RCS IDs with NetBSD, mainly switchingMarius Strobl2011-03-1229-291/+260
| | | | | | | | | the licenses of Matthew R. Green and the TNF to 2-clause. Obtained from: NetBSD Notes: svn path=/head/; revision=219567
* Add some missing consts.Pawel Jakub Dawidek2011-03-121-4/+4
| | | | Notes: svn path=/head/; revision=219566
* Move cap_enter(2) and cap_getmode(2) symbols from FBSD_1.1 to FBSD_1.2.Robert Watson2011-03-121-2/+2
| | | | | | | | | | Suggested by: kib Obtained from: Capsicum Project Sponsored by: Google MFC after: 3 months Notes: svn path=/head/; revision=219565
* Mention the name of the module in warning messages.Dag-Erling Smørgrav2011-03-121-2/+2
| | | | Notes: svn path=/head/; revision=219564
* Add "ruser" and "luser" options. The former corresponds to the currentDag-Erling Smørgrav2011-03-122-5/+35
| | | | | | | | | | | | | behavior, where the module checks that the supplicant is a member of the required group. The latter checks the target user instead. If neither option was specified, pam_group(8) assumes "ruser" and issues a warning. I intend to eventually change the default to "luser" to match the behavior of similarly-named service modules in other operating systems. MFC after: 1 month Notes: svn path=/head/; revision=219563
* Make sure the locally cached value of rt->rt_gateway stays stable,Bjoern A. Zeeb2011-03-121-7/+14
| | | | | | | | | | | | | | | | even after dropping the reference and unlocking. Previously we have dereferenced a NULL pointer (after r121765). Simply unlocking after the block does not work either because of lock ordering (see r121765) and in addition we would still hold a pointer to something that might be gone by the time we access it. Thus take a copy of the value rather than just caching the pointer. PR: kern/151908 Submitted by: chenyl (netstar2008 126.com) (initial version) MFC after: 2 weeks Notes: svn path=/head/; revision=219562
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-126-20/+87
| | | | | | | | | | | | | | | | | | | | | | Add systrace_linux32 and systrace_freebsd32 modules which provide support for tracing compat system calls in addition to native system call tracing provided by systrace module. Provided that all the systrace modules are loaded now you can select what syscalls to trace in the following manner: syscall::xxx:yyy - work on all system calls that match the specification syscall:freebsd:xxx:yyy - only native system calls syscall:linux32:xxx:yyy - linux32 compat system calls syscall:freebsd32:xxx:yyy - freebsd32 compat system calls on amd64 PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (earlier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219561
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-1211-7/+19040
| | | | | | | | | | | | Regenerate system call and systrace support files. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (earlier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219560
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-129-16/+28
| | | | | | | | | | | | | This commits makes necessary changes in syscall/sysent generation infrastructure. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (ealier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219559
* Style(9) fixes. No functional changes.Dmitry Chagin2011-03-121-252/+261
| | | | | | | MFC after: 2 Week Notes: svn path=/head/; revision=219558
* Merge gdtoa-20110304.David Schultz2011-03-1231-646/+3183
|\ | | | | | | Notes: svn path=/head/; revision=219557
| * Import gdtoa sources dated 2011-03-04. This version includes a numbervendor/gdtoa/20110304vendor/gdtoaDavid Schultz2011-03-0952-758/+3629
| | | | | | | | | | | | | | | | | | | | | | | | of bugfixes, although I believe we already have local patches for the ones people are likely to notice. Per a request from arundel@, I also added the vendor's change log, which is available separately from ftp://ftp.netlib.org/fp/. Notes: svn path=/vendor/gdtoa/dist/; revision=219422 svn path=/vendor/gdtoa/20110304/; revision=219423; tag=vendor/gdtoa/20110304
* | Allocate the sound buffer DMA memory coherent. While NetBSD typicallyMarius Strobl2011-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | also does this for sound drivers it's probably not necessary for all combinations of controllers and drivers. However, given that our sound drivers completely lack bus_dmamap_sync(9) calls this at least serves as a workaround when enabling use of the IOMMU streaming buffers on sparc64 and generally for arm and mips. MFC after: 2 weeks Notes: svn path=/head/; revision=219548
* | - Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-112-6/+7
| | | | | | | | | | | | | | | | | | | | | | coherent. - Constify the ti_devs table. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that. MFC after: 2 weeks Notes: svn path=/head/; revision=219547
* | Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-111-4/+4
| | | | | | | | | | | | | | | | | | coherent. MFC after: 2 weeks Notes: svn path=/head/; revision=219546
* | Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-111-4/+4
| | | | | | | | | | | | | | | | | | coherent. MFC after: 2 weeks Notes: svn path=/head/; revision=219545
* | Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-111-6/+7
| | | | | | | | | | | | | | | | | | coherent. MFC after: 2 weeks Notes: svn path=/head/; revision=219544
* | Allocate the DMA memory shared between the host and the controller asMarius Strobl2011-03-112-3/+4
| | | | | | | | | | | | | | | | | | coherent. MFC after: 2 weeks Notes: svn path=/head/; revision=219543
* | Now that TLS generally is available on sparc64 since r219534 turn onMarius Strobl2011-03-111-1/+1
| | | | | | | | | | | | | | | | | | support for it. Note that while sparc64 also supports the static TLS model and thus tls_model("initial-exec"), using the default model turned out to yield slightly better buildstone performance. Notes: svn path=/head/; revision=219535
* | Now that TLS is supported for sparc64 by both binutils 2.17.50 committedMarius Strobl2011-03-114-3/+10
| | | | | | | | | | | | | | in r218822 and rtld(1) committed in r219533 turn on TLS support in GCC. Notes: svn path=/head/; revision=219534
* | - Add support for TLS relocations.Marius Strobl2011-03-112-14/+150
| | | | | | | | | | | | | | | | | | - Emitt an error when encountering an unsupported and in case of the kernel also for unaligned relocations. - Fix R_SPARC_LOX10 relocations. Apparently these are hardly ever used. Notes: svn path=/head/; revision=219533
* | - Remove clause 3 and 4 from TNF licenses. [1]Marius Strobl2011-03-112-118/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add the _RF_X committed in r212998 also to the tables in the sparc64 reloc.c in order reduce differences between the kernel and the userland source. This results in no functional change though. - Fix further inconsistencies in the abbreviations of the names of the relocations. - Further whitespace fixes. Obtained from: NetBSD [1] Notes: svn path=/head/; revision=219532
* | Revert the binutils workaround committed in r219340, the underlyingMarius Strobl2011-03-111-8/+1
| | | | | | | | | | | | | | problem has been fixed in r219530. Notes: svn path=/head/; revision=219531
* | In the upstream rev. 1.61 of elf64-sparc.c the following bug was fixed:Marius Strobl2011-03-111-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of dynamic relocs against section symbols for the output section vma. However, with the addition of TLS support in the upstream rev. 1.104 this fix was essentially reverted. After factoring out the common parts of elf32-sparc.c and elf64-sparc.c a comment was added to elfxx-sparc.c in the upstream rev. 1.27 as part of unrelated changes, saying that the fix from elf64-sparc.c rev. 1.61 indeed should be implemented, but given that some unspecified OS has a broken ld.so expecting broken relocations deliberately is omitted. As the current behavior actually violates the SPARC ABI, FreeBSD never had such a broken ld.so and this is actually causing problems with at least kernel modules linked with binutils 2.17.50 committed in r218822 without the workaround committed in r219340 in place, re-implement the above fix in a way so that is only applied if the output format is ELFOSABI_FREEBSD. In the upstream version it probably would make sense to invert this check and only skip adjusting the addend for the OS with the broken ld.so, once it's determine which one that is. Approved by: dim Notes: svn path=/head/; revision=219530
* | Correct typo.Nathan Whitehorn2011-03-111-1/+1
| | | | | | | | Notes: svn path=/head/; revision=219528
* | Fix warnings and style(9) issues.Rebecca Cran2011-03-112-4/+6
| | | | | | | | | | | | | | Set WARNS to 6. Notes: svn path=/head/; revision=219527
* | amd64/NOTES: use a greater number in KSTACK_PAGES exampleAndriy Gapon2011-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a minor cosmetic change - the users are more likely to want to increase (rather than decrease) default kernel stack size, which is already 4 pages on amd64. MFC after: 4 days Notes: svn path=/head/; revision=219525
* | Fix the build: we have snprintf(3).Rebecca Cran2011-03-111-0/+1
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219524
* | Mostly revert r219468, as I had misremembered the C standard regardingMatthew D Fleming2011-03-116-6/+6
| | | | | | | | | | | | | | | | | | the size of an extern array. Keep one change from strncpy to strlcpy. Notes: svn path=/head/; revision=219523
* | Fix warnings and set WARNS to 6.Rebecca Cran2011-03-112-0/+5
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219522
* | Fix warnings and set WARNS to 6.Rebecca Cran2011-03-112-3/+5
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219521
* | mptable.h is now in include/x86.Rebecca Cran2011-03-111-1/+1
| | | | | | | | Notes: svn path=/head/; revision=219519
* | Fix bugs and make improvements to documentation renaming.Nathan Whitehorn2011-03-111-7/+10
| | | | | | | | | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=219512
* | Fix warnings and style(9) issues.Rebecca Cran2011-03-112-14/+16
| | | | | | | | | | | | | | | | | | Set WARNS to 6. MFC after: 1 week Notes: svn path=/head/; revision=219511
* | Add support for generating release documentation. Note that, due to theNathan Whitehorn2011-03-111-0/+17
| | | | | | | | | | | | | | | | release documentation build being broken at the moment, this is only partially functional. Notes: svn path=/head/; revision=219509
* | Add a wrapper script for Makefile.bsdinstall that does the sourceNathan Whitehorn2011-03-111-0/+47
| | | | | | | | | | | | | | | | checkout/chroot/compile/release dance that the existing release Makefile does for those who want a totally pristine release build. Notes: svn path=/head/; revision=219508