aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old libdwarf and bring in the new libdwarf in contrib/.Kai Wang2014-01-1618-4342/+311
| | | | Notes: svn path=/projects/elftoolchain/; revision=260794
* Define SHT_GNU_LIBLIST and R_MIPS_64, which is needed for libelf andKai Wang2014-01-161-0/+2
| | | | | | | libdwarf. Notes: svn path=/projects/elftoolchain/; revision=260793
* Use FreeBSD's ELF headers instead of the elfdefinitions.h header whichKai Wang2014-01-161-2/+2
| | | | | | | | | comes with elftoolchain. This version of libelf doesn't need to be portable; using FreeBSD's own ELF headers will avoid conflicts and make integration easier. Notes: svn path=/projects/elftoolchain/; revision=260792
* Set CFLAGS in just one line.Kai Wang2014-01-151-4/+1
| | | | Notes: svn path=/projects/elftoolchain/; revision=260699
* Removed source code for the old libelf and build the new libelf fromKai Wang2014-01-15109-15254/+23
| | | | | | | contrib/ instead. Notes: svn path=/projects/elftoolchain/; revision=260698
* Copy libelf, libdwarf and common files from vendor/ to contrib/.Kai Wang2014-01-15315-0/+56173
|\ | | | | | | Notes: svn path=/projects/elftoolchain/; revision=260697
| * Initial import of elftoolchain r2974.vendor/elftoolchain/elftoolchain-r2974Kai Wang2014-01-151811-0/+352024
| | | | | | | | Obtained from: elftoolchain.org Notes: svn path=/vendor/elftoolchain/dist/; revision=260684 svn path=/vendor/elftoolchain/elftoolchain-r2974/; revision=260685; tag=vendor/elftoolchain/elftoolchain-r2974
* In the nested TLB fault handler, for a direct-mapped address, makeMarcel Moolenaar2014-01-151-1/+1
| | | | | | | | | | | | | | | | | | sure to clear the lower 12 bits. We're adding the translation attributes to the physical address and non-zero bits in the first 12 bits would give us something unexpected, including invalid bit values. Those trigger nested general protection faults. We do not have to clear the region bits, because they are ignored anyway, so we can replace an existing dep instruction with the one we need. This fixes GP faults for the swapper thread, as it's the only thread that has a direct-mapped stack. Since the bug is in the nested TLB fault handler, the frequency of hitting the GP is in the order of hours/days under load. Notes: svn path=/head/; revision=260666
* Add missing arch= and revision= support.Hiroki Sato2014-01-141-0/+45
| | | | Notes: svn path=/head/; revision=260655
* sh: Remove SIGWINCH handler and just check for resize before every read.Jilles Tjoelker2014-01-143-23/+3
| | | | | | | | | | | | | | | | The SIGWINCH handler triggers breakage in libedit which is hard to fix; see PR bin/169773. Also, window size changes while a program is in foreground (and it rather than sh will receive SIGWINCH) will now be picked up automatically. Downside: it is now certain that a resize is only processed after pressing <Enter>. If libedit is fixed, sh will most likely have to be changed also. PR: bin/180146 Notes: svn path=/head/; revision=260654
* - Purge old translations.Hiroki Sato2014-01-14255-43014/+65
| | | | | | | | | | - Add missing footer due to DSSSL->XSLT migration and use XML catalog to resolve URI[*]. Based on the work by: gabor [*] Notes: svn path=/head/; revision=260653
* libc/resolv: Use poll() instead of kqueue().Jilles Tjoelker2014-01-142-3/+3
| | | | | | | | | | | The resolver in libc creates a kqueue for watching a single file descriptor. This can be done using poll() which should be lighter on the kernel and reduce possible problems with rlimits (file descriptors, kqueues). Reviewed by: jhb Notes: svn path=/head/; revision=260652
* Fix lock leak in purely hypothetical case of TCP connection without SVC_ACKAlexander Motin2014-01-143-11/+13
| | | | | | | | | method. This change should be NOP now, but it is better to be future safe. Reported by: rmacklem Notes: svn path=/head/; revision=260648
* Disable 'monitor' feature in ntpd by default.Xin LI2014-01-141-0/+2
| | | | | | | | Security: FreeBSD-SA-14:02.ntpd Approved by: so Notes: svn path=/head/; revision=260637
* Fix bsnmpd remote denial of service vulnerability.Xin LI2014-01-141-0/+5
| | | | | | | | | | Reported by: dinoex Submitted by: harti Security: FreeBSD-SA-14:01.bsnmpd Security: CVE-2014-1452 Notes: svn path=/head/; revision=260636
* Replace hand-crafted Kyuafiles with automatic generation.Julio Merino2014-01-144-26/+12
| | | | | | | | | | | Redo r260506 by using the new TEST_METADATA functionality of bsd.test.mk to mark the sh(1) and test(1) tests as not supporting root. This is to get rid of hand-crafted Kyuafiles for these very simple cases. MFC after: 5 days Notes: svn path=/head/; revision=260635
* Use TAP_TESTS_PERL to register the legacy_test in bin/pax.Julio Merino2014-01-143-11/+1
| | | | | | | | | | | | | | | | | | Redo r260586 by using the new functionality in tap.test.mk to transparently support perl-based test programs. As a side-effect, we get rid of an explicit path to /usr/bin/perl by replacing it with /usr/local/bin/perl (or as defined in tap.test.mk). This also fixes the name of the legacy_test source file because this should have always been legacy_test.pl and not legacy_test.sh. My mistake when originally moving the code around without realizing that this was a perl script. MFC after: 5 days Notes: svn path=/head/; revision=260634
* Support perl-based TAP-compliant test programs.Julio Merino2014-01-141-0/+27
| | | | | | | | | | | | | | | | Introduce a TAP_TESTS_PERL primitive to list test programs written in perl. Only do this in tap.test.mk because I only expect perl-based test programs with this interface. This is very similar to TAP_TESTS_SH but the difference is that we record in the Kyuafile that the test program requires a perl interpreter. This in turn makes Kyua mark the test as skipped if the perl package is not yet installed, instead of mysteriously failing to run the program. MFC after: 5 days Notes: svn path=/head/; revision=260633
* Support defining test program metadata from the Makefiles.Julio Merino2014-01-141-1/+15
| | | | | | | | | | | | | | | | | | Introduce a new, per-test-program TEST_METADATA.<program> variable that contains a list of key/value paris describing metadata properties for that test program. These properties are later written into the auto-generated Kyuafile when using the KYUAFILE=auto functionality. This is to avoid having to supply hand-crafted Kyuafiles when the needs for metadata overrides are trivial. While doing this, and because I am documenting TEST_METADATA, take the chance to document the TEST_INTERFACE setting as well. MFC after: 5 days Notes: svn path=/head/; revision=260632
* Don't output any modifier keys before we see a validHans Petter Selasky2014-01-141-0/+36
| | | | | | | | | | | non-modifier key press. This prevents so-called "ghost keyboards" keeping modifier keys pressed while not actually seen as a real keyboard. MFC after: 2 weeks Notes: svn path=/head/; revision=260622
* Add missing EM_PPC64 to e_machine header display.Justin Hibbits2014-01-141-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=260621
* Add an API to rendezvous all active vcpus in a virtual machine. The rendezvousNeel Natu2014-01-149-27/+318
| | | | | | | | | | | | | | | | | | can be initiated in the context of a vcpu thread or from the bhyve(8) control process. The first use of this functionality is to update the vlapic trigger-mode register when the IOAPIC pin configuration is changed. Prior to this change we would update the TMR in the virtual-APIC page at the time of interrupt delivery. But this doesn't work with Posted Interrupts because there is no way to program the EOI_exit_bitmap[] in the VMCS of the target at the time of interrupt delivery. Discussed with: grehan@ Notes: svn path=/head/; revision=260619
* ANSI-fy prototype.Xin LI2014-01-141-3/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=260618
* Move myself from ports alumni to active ports committer section.Bruce A. Mah2014-01-131-1/+2
| | | | | | | | | Add an edge indicating mat as my ports mentor. Approved by: mat (mentor) Notes: svn path=/head/; revision=260612
* Described in the man page but not implemented. Here it comes,Andreas Tobler2014-01-131-0/+37
| | | | | | | | | atomic_swap_32/64. The latter only for powerpc64. MFC after: 1 month Notes: svn path=/head/; revision=260610
* The onyx codec works also as module, so add it.Andreas Tobler2014-01-131-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=260607
* Remove scary comment about this being a test key.Bryan Drewery2014-01-131-1/+0
| | | | | | | | | | | There has been no need to regenerate the signing key. Reported by: mat Approved by: bapt (mentor) MFC after: 3 days Notes: svn path=/head/; revision=260605
* When building a cross-kgdb, suppress the registration of theMarcel Moolenaar2014-01-131-0/+12
| | | | | | | | | | | | | | standard core target by declaring coreops_suppress_target with initializer. This is also happening for non-cross kgdb, by virtue of having fbsd-threads.c in libgdb and having it do the exact same thing. Since fbsd-threads.c is not included in in libgdb when building a cross debugger, we ended up with more than 1 core file targets (the standard gdb core file target and kgdb's libkvm based core file target) and this behaves the same as not having a core target at all. Notes: svn path=/head/; revision=260601
* We don't have to worry about page sizes when working on virtualMarcel Moolenaar2014-01-131-1/+1
| | | | | | | cores (i.e. minidumps). Every segment is virtually contiguous. Notes: svn path=/head/; revision=260600
* Re-apply the part of r260022 that was reverted by r260030 withMarcel Moolenaar2014-01-131-5/+18
| | | | | | | | | | | | | | | one significant difference: for LIB32 builds both TARGET_ARCH and MACHINE_ARCH are defined. TARGET_ARCH confusingly holds the architecture of the host (e.g. amd64), while MACHINE_ARCH holds the architecture were trying to build (e.g. i386). With both set and different, r260022 changed the behaviour to interpret the condition as building a cross-amd64 libkvm on i386, when obviously we're trying to build an i386 version on amd64. When COMPAT_32BIT is defined, we're building LIB32 and ignore the value of TARGET_ARCH as we did before. Notes: svn path=/head/; revision=260599
* Fix dmesg(1) -> dmesg(8)Baptiste Daroussin2014-01-132-2/+2
| | | | | | | Reported by: trasz Notes: svn path=/head/; revision=260597
* Fix typoBaptiste Daroussin2014-01-131-1/+1
| | | | | | | Reported by: dumbbell Notes: svn path=/head/; revision=260596
* Update the BUGS section according the recent changes in kldload(8)Baptiste Daroussin2014-01-131-3/+3
| | | | | | | | Reviewed by: bdrewery MFC after: 1 week Notes: svn path=/head/; revision=260595
* Point the user to dmesg(1) to get informations about why loading a module ↵Baptiste Daroussin2014-01-131-2/+12
| | | | | | | | | | | did fail instead of printing the cryptic "Exec format error" MFC after: 1 week Notes: svn path=/head/; revision=260594
* Implement better error recovery for Transaction Translators, TTs,Hans Petter Selasky2014-01-136-25/+301
| | | | | | | | | | | | | found in High Speed USB HUBs which translate from High Speed USB into FULL or LOW speed USB. In some rare cases SPLIT transactions might get lost, which might leave the TT in an unknown state. Whenever we detect such an error try to issue either a clear TT buffer request, or if that is not possible reset the whole TT. MFC after: 1 week Notes: svn path=/head/; revision=260589
* Separate I/O errors from reception of STALL PID.Hans Petter Selasky2014-01-132-5/+17
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=260588
* Add new testcase for USB mass storage.Hans Petter Selasky2014-01-132-0/+40
| | | | Notes: svn path=/head/; revision=260587
* Mark the bin/pax tests as requiring perl.Julio Merino2014-01-132-0/+8
| | | | | | | | | | The effect of this is that the test program is marked as skipped when perl is missing, instead of marking it as broken due to an execution failure. MFC after: 3 days Notes: svn path=/head/; revision=260586
* Prevent misc_helpers from running as a test.Julio Merino2014-01-131-1/+9
| | | | | | | | | | | | | | | | | | | Do this by generating misc_helpers explicitly, without using the ATF_TESTS_SH functionality. While this script is technically an atf-sh test program, it is not intended to be run as a test and therefore it mustn't end up in the Kyuafile. Using ATF_TESTS_SH means that misc_helpers ended up registered in the Kyuafile and then failed to run as a test. The alternative would be to supply an explicit Kyuafile from this directory that lists the known test files, but doing it the way described above will be easier to maintain. MFC after: 3 days Notes: svn path=/head/; revision=260584
* Add unmapped IO support to virtio_scsi(4)Bryan Venteicher2014-01-131-1/+4
| | | | Notes: svn path=/head/; revision=260583
* Add unmapped IO support to virtio_blk(4)Bryan Venteicher2014-01-131-3/+4
| | | | Notes: svn path=/head/; revision=260582
* Add sglist_append_bio(9) to append a struct bio's data to a sglistBryan Venteicher2014-01-134-1/+55
| | | | | | | Reviewed by: jhb, kib (long ago) Notes: svn path=/head/; revision=260581
* Add atf pkg-config files from the vendor branch.Julio Merino2014-01-124-1/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | These were originally deleted by mistake (because they were not yet being installed) and are actually necessary. This should have been part of r260576 but I missed committing this directory. MFC after: 5 days Notes: svn path=/head/; revision=260577
* | Generate and install pkg-config files for atf.Julio Merino2014-01-124-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | These files are required to get packages in ports to build against atf and also to get a couple of currently-failing tests to pass. I'm following the approach already used by the libusb pkg-config files installed by the system regarding the location and the install rules. MFC after: 5 days Notes: svn path=/head/; revision=260576
* | fts(3): Remove stray mentions of the obsolete fts_bignum.Jilles Tjoelker2014-01-121-9/+1
| | | | | | | | Notes: svn path=/head/; revision=260572
* | fts: Stat things relative to the directory fd, if possible.Jilles Tjoelker2014-01-121-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | As a result, the kernel needs to process shorter pathnames if fts is not changing directories (if fts follows symlinks (-L option to utilities), fts cannot open "." or FTS_NOCHDIR was specified). Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the stat stage but later (opendir or application fts_accpath) or not at all. Notes: svn path=/head/; revision=260571
* | Correctly update the count of stuck pages, "addl_page_shortage", inAlan Cox2014-01-121-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vm_pageout_scan(). There were missing increments in two less common cases. Don't conflate the count of stuck pages and the pageout deficit provided by vm_page_alloc{,_contig}(). (A proposed fix to the OOM code depends on this.) Handle held pages consistently in the inactive queue scan. In the more common case, we did not move the page to the tail of the queue. Whereas, in the less common case, we did. There's no particular reason to move the page in the less common case, so remove it. Perform the calculation of the page shortage for the active queue scan a little earlier, before the active queue lock is acquired. The correctness of this calculation doesn't depend on the active queue lock being held. Eliminate a redundant variable, "pcount". Use the more descriptive variable, "maxscan", in its place. Apply a few nearby style fixes, e.g., eliminate stray whitespace and excess parentheses. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=260567
* | Remove incorrect bit shift when assigning the LUN request fieldBryan Venteicher2014-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This caused duplicate targets appearing on Google Compute Engine instances. PR: kern/185626 Submitted by: Venkatesh Srinivas <venkateshs@google.com> MFC after: 3 days Notes: svn path=/head/; revision=260566
* | Fix gcc with EABI on big-endian ARM by setting the endian correctly.Andrew Turner2014-01-121-0/+3
| | | | | | | | | | | | | | | | | | Without this gcc would generate byte loads for a little-endian core. MFC after: 1 week Notes: svn path=/head/; revision=260565
* | Make sure reserved fields of the EHCI DMA descriptors are not dirtyHans Petter Selasky2014-01-121-3/+26
| | | | | | | | | | | | | | | | | | after previous transfers. MFC after: 1 week Notes: svn path=/head/; revision=260563