aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Set the PKG_CACHEDIR directory to 'dvd/' instead of 'release/'Glen Barber2013-11-182-2/+2
| | | | | | | | | | | in preparation of adding a 'dvd1.iso' target. MFC after: 3 days X-MFC-With: r258305, r258307, r258308 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258309
* Unconditionally copy the build host /etc/resolv.conf intoGlen Barber2013-11-181-1/+1
| | | | | | | | | | | | | the chroot directory, since hostname resolution may be needed in the case of building a dvd image (with packages) and also setting 'NOPORTS=1'. MFC after: 3 days X-MFC-With: r258305, r258307 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258308
* Add a script and configuration files to fetch pre-built packagesGlen Barber2013-11-183-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | from pkg.FreeBSD.org for inclusion on release medium (dvd1.iso). The script sources ${.CURDIR}/${TARGET}/pkg-stage.conf, which sets several environment variables, such as the pkg(8) ABI, PACKAGESITE, PKG_DBDIR, and PKG_CACHEDIR. PKG_CACHEDIR is set to the directory on the release medium used by bsdconfig(8) (/packages/${ABI}). ABI is determined by output of 'make -C /usr/src/release -V REVISION'. See pkg.conf(5) for descripton on other variables set here. The list of packages to include are set within the configuration file. The script and configuration files are intended to be run by the 'make dvd' target within the release directory, and assume the release is built within a chroot environment (such as by using release.sh). Relevant updates to release/Makefile will follow. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258307
* Use the IMAGES variable to determine which image files to removeGlen Barber2013-11-181-1/+1
| | | | | | | | | | as part of 'make -C /usr/src/release clean'. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258305
* Add some sample test programs.Julio Merino2013-11-1815-0/+735
| | | | | | | | | | | | | | | | | | | | | | This change adds some sample test cases to share/examples/tests/ demonstrating the basic usage of the atf and plain interfaces. These test programs are fully-functional and are installed as part of the test suite, which guarantees that the sample code remains correct. However, they currently mostly serve as a placeholder for additional examples and may be incomplete (depending on how you look at them). I will see what else can be useful while working on documentation. As a bonus, the addition of these tests exercise the *.test.mk files, one of which (plain.test.mk) was not yet in use, and also demonstrates that it's possible to mix different kinds of test programs into the same test suite. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258299
* Fix the build of plain test programs.Julio Merino2013-11-181-0/+2
| | | | | | | | | | | | | SRCS.<prog> must be explicitly defined when using the PROGS* functionality for each program to be built. As there are no plain test programs in the system yet, this was not detected. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258298
* Remove registration of C++ test programs into PROGS.Julio Merino2013-11-182-2/+0
| | | | | | | | | | | C++ programs need to be added to PROGS_CXX, not PROGS, and the code was actually doing both. Just keep the registration into PROGS_CXX to prevent possible obscure build problems. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258297
* Fix ZFS deadlock when sending a snapshot which is mounted.Steven Hartland2013-11-181-2/+4
| | | | | | | | MFC after: 1 week Sponsored by: Multiplay Notes: svn path=/head/; revision=258294
* The fasttrap ioctl used to create probes takes a variable-sized argument.Mark Johnston2013-11-182-15/+2
| | | | | | | | | | | | | It was not being correctly copied into the kernel on FreeBSD, and as a result, probes with multiple probe sites were not being created properly. To fix this, change the ioctl definition so that the fasttrap ioctl handler is responsible for copying in userland data. Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> MFC after: 1 month Notes: svn path=/head/; revision=258291
* Drop all ATF tools code.Julio Merino2013-11-1872-15426/+9
| | | | | | | | | | We stopped building the tools in r256365 so there is no need to ship their code any longer. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258290
* MFV: Import atf-0.18.Julio Merino2013-11-1793-43463/+2821
|\ | | | | | | | | | | | | Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258289
| * Import atf-0.18:vendor/atf/atf-0.18Julio Merino2013-11-1630-5198/+8013
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Experimental version released on November 16th, 2013. * Issue 45: Added require.memory support in atf-run for FreeBSD. * Fixed an issue with the handling of cin with libc++. * Issue 64: Fixed various mandoc formatting warnings. * X-NetBSD-PR bin/48284: Made atf-check flush its progress message to stdout so that an interrupted test case always shows the last message being executed. * X-NetBSD-PR bin/48285: Fixed atf_check examples in atf-sh-api(3). Approved by: rpaulo (mentor) Notes: svn path=/vendor/atf/dist/; revision=258238 svn path=/vendor/atf/atf-0.18/; revision=258239; tag=vendor/atf/atf-0.18
| * Import atf-0.17:vendor/atf/atf-0.17Julio Merino2013-11-15111-7401/+25147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Experimental version released on February 14th, 2013. * Added the atf_utils_cat_file, atf_utils_compare_file, atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists, atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string, atf_utils_readline, atf_utils_redirect and atf_utils_wait utility functions to atf-c-api. Documented the already-public atf_utils_free_charpp function. * Added the cat_file, compare_file, copy_file, create_file, file_exists, fork, grep_collection, grep_file, grep_string, redirect and wait functions to the atf::utils namespace of atf-c++-api. These are wrappers around the same functions added to the atf-c-api library. * Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a string against a regular expression. * Miscellaneous fixes for manpage typos and compilation problems with clang. * Added caching of the results of those configure tests that rely on executing a test program. This should help crossbuild systems by providing a mechanism to pre-specify what the results should be. * X-NetBSD-PR bin/45690: Make atf-report convert any non-printable characters to a plain-text representation (matching their corresponding hexadecimal entities) in XML output files. This is to prevent the output of test cases from breaking xsltproc later. Note that this import, compared to the one for 0.16, brings in all the files that are part of the release. This is to follow the Subversion Primer guidelines, which mention that all files should be imported first and only dropped when merging into contrib/atf/. Approved by: rpaulo (mentor) Notes: svn path=/vendor/atf/dist/; revision=258191 svn path=/vendor/atf/atf-0.17/; revision=258192; tag=vendor/atf/atf-0.17
* | Implement pmap_align_superpage().Alan Cox2013-11-171-0/+14
| | | | | | | | | | | | | | MFC after: 6 weeks Notes: svn path=/head/; revision=258287
* | Update notes for imports of atf.Julio Merino2013-11-172-21/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | This is because the atf vendor branch now includes a verbatim copy of the distfile sources. As a result, the list of files to-be-removed from the contrib/ directory is now more aggressive (and different) and the upgrade notes now only describe stuff that is specific to the atf import and is not documented in the Subversion Primer. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258286
* | Fix the build of some ATF tests.Julio Merino2013-11-173-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building various programs from a single Makefile, program-specific variables are of the form <VAR>.<PROG>, not <VAR>_<PROG>. Fix this obvious typo to fix the build when WITH_TESTS=yes. I am not sure how this ever worked before given that manual inspection of bsd.progs.mk clearly shows that the expected character between the two components is a dot and not an underscore... but I suspect the changes in r258095 exposed this oddity. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258285
* | Bump __FreeBSD_version for iconv changesPeter Wemm2013-11-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=258284
* | Attempt to move the POSIX iconv* symbols out of runtime linker space.Peter Wemm2013-11-1722-48/+673
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD systems usually implemented this as a third party module and our implementation hasn't played as nicely with the old way as it could have. To that end: * Rename the iconv* symbols in libc.so.7 to have a __bsd_ prefix. * Provide .symver compatability with existing 10.x+ binaries that referenced the iconv symbols. All existing binaries should work. * Like on Linux/glibc systems, add a libc_nonshared.a to the ldscript at /usr/lib/libc.so. * Move the "iconv*" wrapper symbols to libc_nonshared.a This should solve the runtime ambiguity about which symbols resolve to where. If you compile against the iconv in libc, your runtime dependencies will be unambiguous. Old 9.x libraries and binaries will always resolve against their libiconv.so.3 like they did on 9.x. They won't resolve against libc. Old 10.x binaries will be satisified by the .symver helpers. This should allow ports to selectively compile against the libiconv port if needed and it should behave without ambiguity now. Discussed with: kib Notes: svn path=/head/; revision=258283
* | Fix siginfo_t.si_status for wait6/waitid/SIGCHLD.Jilles Tjoelker2013-11-172-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per POSIX, si_status should contain the value passed to exit() for si_code==CLD_EXITED and the signal number for other si_code. This was incorrect for CLD_EXITED and CLD_DUMPED. This is still not fully POSIX-compliant (Austin group issue #594 says that the full value passed to exit() shall be returned via si_status, not just the low 8 bits) but is sufficient for a si_status-related test in libnih (upstart, Debian/kFreeBSD). PR: kern/184002 Reported by: Dmitrijs Ledkovs Tested by: Dmitrijs Ledkovs Notes: svn path=/head/; revision=258281
* | Fix creating a vlan over lagg over mlxen crash.Alfred Perlstein2013-11-171-0/+6
| | | | | | | | | | | | | | | | PR: 181931 Submitted by: Shahar Klein (shahark mellanox.com) Notes: svn path=/head/; revision=258276
* | Add a sysctl to allow disabling resetting the OF syscons.Justin Hibbits2013-11-171-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | On some machines (G5 with lots of RAM), entering OF sometimes causes the machine to hang. Once the machine is booted, currently the only entry point into OF is through resetting the framebuffer on mode switch on these machines. Disabling this allows the machine to stay up at the expense of less usable consoles after X is started. MFC after: Never, this is only a hack Notes: svn path=/head/; revision=258275
* | #interrupt-cells belongs to the iparent, not the device parent.Nathan Whitehorn2013-11-171-4/+4
| | | | | | | | Notes: svn path=/head/; revision=258274
* | Add more obsolete filesAntoine Brodin2013-11-171-0/+9
| | | | | | | | Notes: svn path=/head/; revision=258273
* | Use #address-cells and #size-cells here too instead of guessing. There isNathan Whitehorn2013-11-172-7/+17
| | | | | | | | | | | | | | | | | | | | | | some comment I wrote about these values "lying" in the negative diff, which referes to an earlier misunderstanding about which node to read them from. This gets at least the PPC64 kernel booting in the mac99 system model in QEMU after bypassing the MacIO ATA driver, which apparently still has problems. Notes: svn path=/head/; revision=258272
* | Actually look up #address-cells instead of assuming it is correlated withNathan Whitehorn2013-11-171-7/+13
| | | | | | | | | | | | | | | | | | the Uninorth version number. MFC after: 2 weeks Notes: svn path=/head/; revision=258271
* | Add a try-include word (which acts the same as "include") and use it toDevin Teske2013-11-175-1/+23
| | | | | | | | | | | | | | | | | | | | | | conditionally include (but ignore failures) /boot/loader.rc.local and /boot/menu.rc.local -- to make customizing the menu easier. Reviewed by: alfred Discussed on: -hackers Notes: svn path=/head/; revision=258270
* | Refactor draw-beastie function.Devin Teske2013-11-171-46/+16
| | | | | | | | | | | | | | Discussed on: -hackers Notes: svn path=/head/; revision=258269
* | Do not assume a value for #address-cells when parsing the OF translationsNathan Whitehorn2013-11-171-17/+27
| | | | | | | | | | | | | | map. This allows the kernel to get farther with OpenBIOS on 64-bit CPUs. Notes: svn path=/head/; revision=258268
* | Fix package installation from physical media such as DVD.Devin Teske2013-11-173-14/+34
| | | | | | | | | | | | | | | | Discussed with: re (gjb) MFC after: 3 days Notes: svn path=/head/; revision=258267
* | Always shutdown the media when we're exiting the packages module (preventsDevin Teske2013-11-172-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | errors on re-entry for physical media). Also, while we're here, stop ejecting the CDROM when we're done with it (but leave the functions for later use so that we could perhaps -- from the installer standpoint -- use it to eject the media after an install). MFC after: 3 days Notes: svn path=/head/; revision=258266
* | Improve debugging with f_eval_catch() introduced by SVN r257784 and alsoDevin Teske2013-11-172-5/+8
| | | | | | | | | | | | | | | | | | | | fix a bug where "pkg update" was not getting the value of PACKAGESITE. NB: PACKAGESITE needs to be explicitly exported in support of children. MFC after: 3 days Notes: svn path=/head/; revision=258265
* | Kick an unused orphan to the curb ;)Devin Teske2013-11-171-2/+2
| | | | | | | | Notes: svn path=/head/; revision=258264
* | Move function name declaration to top of function (where it is closest toDevin Teske2013-11-171-18/+18
| | | | | | | | | | | | | | | | | | | | the value it needs to be), s/fname/funcname/g, and move function name usage to within printf format string. MFC after: 3 days Notes: svn path=/head/; revision=258263
* | drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capabilityJean-Sébastien Pédron2013-11-174-0/+12
| | | | | | | | | | | | | | | | | | | | | | This fixes DPMS with KDE and radeonkms. Without this, the display would freeze when the monitor is put into sleep state, and only resumes after several dozens of minutes once the monitor is powered on again. Tested by: Mathias Picker <Mathias.Picker@virtual-earth.de> Notes: svn path=/head/; revision=258262
* | In r257692 I intentionally deleted code that handled P2P interfacesGleb Smirnoff2013-11-171-1/+3
| | | | | | | | | | | | | | | | | | | | with equal addresses on both sides. It appeared that OpenVPN uses such configutations. Submitted by: trociny Notes: svn path=/head/; revision=258260
* | Unify handling of illegal instruction faults between AIM and Book-E. ThisNathan Whitehorn2013-11-174-38/+44
| | | | | | | | | | | | | | | | | | | | | | allows FPU emulation on AIM as well as providing support for the mfpvr and lwsync instructions from userland on e500 cores. lwsync, in particular, is required for many C++ programs to work correctly. MFC after: 1 week Notes: svn path=/head/; revision=258259
* | Deregister helper hooks on vnet destroy.Mikolaj Golub2013-11-171-0/+14
| | | | | | | | Notes: svn path=/head/; revision=258258
* | Split the function of the PCB_FPU flags into two: PCB_FPU now indicates thatNathan Whitehorn2013-11-176-34/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the actual FPU is enabled, while PCB_FPREGS indicates that the FPU state structure in the PCB is valid. This separation reflects the situation on FPU-less systems in which the FP state is used by the emulator but we don't actually want to try to turn on the non-existant FPU. Use this flag to save and restore FP regs properly on both AIM and Book-E. As a side effect, this sets up hard-FP and Altivec on Book-E CPUs with such abilities except for a trap handler to call enable_fpu()/enable_altivec(). Notes: svn path=/head/; revision=258257
* | Fix umastat build on present kernel.Alexander Motin2013-11-171-11/+8
| | | | | | | | Notes: svn path=/head/; revision=258256
* | Alias WCHAR_T to UCS-4-INTERNAL. WCHAR_T is the internal encodingPeter Wemm2013-11-171-0/+1
| | | | | | | | | | | | | | | | of a wchar_t type - which is 32 bit on FreeBSD. This matches observed behavior on a libiconv machine. Notes: svn path=/head/; revision=258254
* | In addition to r258220 allow shrinking in "automatic" mode if there isAlexander Motin2013-11-171-35/+47
| | | | | | | | | | | | | | | | | | | | | | | | already valid metadata found at the new location. This should allow easy transparent recovery if first resize was done by mistake. While there, unify metadata write code and fix minor memory leak. MFC after: 1 month Notes: svn path=/head/; revision=258251
* | Make single precision floating point arithmetic actually work -- I thinkNathan Whitehorn2013-11-172-3/+13
| | | | | | | | | | | | | | | | | | | | | | it never did -- and fix an obvious missing line. Floating point emulation on Book-E still needs some work but this gets it basically functional on soft-FPU systems (hard FPU for Book-E is not yet implemented). MFC after: 1 week Notes: svn path=/head/; revision=258250
* | Remove a pointless #ifdef AIM. This is just PPC64 specific, includingNathan Whitehorn2013-11-171-3/+3
| | | | | | | | | | | | | | 64-bit Book-E. Notes: svn path=/head/; revision=258247
* | There is no reason Book-E needs to save XER and CTR on context switches.Nathan Whitehorn2013-11-173-12/+0
| | | | | | | | | | | | | | | | They aren't Book-E specific registers to begin with and, even if they were, are defined volatile by the ABI. Notes: svn path=/head/; revision=258246
* | Add missing include files for the printf_l and scanf_l man pages.Eitan Adler2013-11-172-0/+2
| | | | | | | | | | | | | | Reported by: swildner@dragonflybsd.org Notes: svn path=/head/; revision=258245
* | Move CCSR discovery into the platform module, while simultaneously makingNathan Whitehorn2013-11-173-10/+56
| | | | | | | | | | | | | | | | | | | | it more flexible about how the CCSR range is found. With this change, the stock MPC85XX will boot on a Routerboard 800. Hardware donated by: Benjamin Perrault Notes: svn path=/head/; revision=258244
* | Make sure that TLB1 mappings are aligned correctly.Nathan Whitehorn2013-11-171-0/+1
| | | | | | | | Notes: svn path=/head/; revision=258243
* | In the data abort handler, don't panic if kdb is available and says itIan Lepore2013-11-161-1/+2
| | | | | | | | | | | | | | | | | | | | handled the condition. PR: arm/183668 Submitted by: Howard Su <howard0su@gmail.com> Notes: svn path=/head/; revision=258240
* | Use SCTP_PR_SCTP_TTL when the user provides a positiveMichael Tuexen2013-11-161-5/+9
| | | | | | | | | | | | | | | | | | timetolive in sctp_sendmsg(). MFC after: 3 days Notes: svn path=/head/; revision=258235
* | Move all atf directories to the tests mtree.Julio Merino2013-11-165-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | This is to ensure that test-related directories don't get needlessly created (and later deleted) when MK_TESTS=no. Problem found by jhb@. Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=258233