summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Silence the gcc warning about unsigned comparison with 0 in a differenttijl2014-03-011-3/+2
| | | | | | way because mnemonic_ext_size isn't a preprocessor macro. MFC after: 3 days
* MFV r262617: ncurses 5.9.delphij2014-02-283-93/+245
|
* Merge from head up to r262611.dim2014-02-281-1/+1
|\
| * syncer(4) is a kernel process, not a user processbjk2014-02-271-1/+1
| | | | | | | | | | Noticed by: Geoffrey Thomas <gthomas@mokafive.com> Approved by: hrs (mentor)
* | Merge from head up to r262536.dim2014-02-267-24/+24
|\ \ | |/
| * Update LLDB snapshot to upstream r202189emaste2014-02-265-4/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights include (upstream revs in parens): - Improvements to the remote GDB protocol client (r196610, r197579, r197857, r200072, and others) - Bug fixes for big-endian targets (r196808) - Initial support for libdispatch (GCD) queues in the debuggee (r197190) - Add "step-avoid-libraries" setting (r199943) - IO subsystem improvements (including initial work on a curses gui) (r200263) - Support hardware watchpoints on FreeBSD (r201706) - Improved unwinding through hand-written assembly functions (r201839) - Handle DW_TAG_unspecified_parameters for variadic functions (r202061) - Fix Ctrl+C interrupting a running inferior process (r202086, r202154) - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler, ELF core files, DWARF debug info, and others. Sponsored by: DARPA, AFRL
| | * Update LLDB bmake build for r262187emaste2014-02-185-4/+9
| | | | | | | | | | | | Sponsored by: DARPA, AFRL
| * | Queue pending exceptions in the 'struct vcpu' instead of directly updating theneel2014-02-262-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processor-specific VMCS or VMCB. The pending exception will be delivered right before entering the guest. The order of event injection into the guest is: - hardware exception - NMI - maskable interrupt In the Intel VT-x case, a pending NMI or interrupt will enable the interrupt window-exiting and inject it as soon as possible after the hardware exception is injected. Also since interrupts are inherently asynchronous, injecting them after the hardware exception should not affect correctness from the guest perspective. Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict it to only deliver x86 hardware exceptions. This new ioctl is now used to inject a protection fault when the guest accesses an unimplemented MSR. Discussed with: grehan, jhb Reviewed by: jhb
* | | Merge from head up to r262472.dim2014-02-255-20/+21
|\ \ \ | |/ /
| * | Wrap for loop in #if block testing the size is actually greaterdelphij2014-02-251-1/+4
| | | | | | | | | | | | | | | | | | | | | than 0. This silences gcc warning. Reviewed by: sha256(1) with clang X-MFC-With: r262447
| * | Revert 262462 and 262461, they didn't solve the problem, indelphij2014-02-251-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | fact I should actually waited the build to be finished before committing. A proper fix would be committed once my test build passes. Pointy hat to: delphij
| * | Patch 2/2:delphij2014-02-241-11/+11
| | | | | | | | | | | | | | | | | | Reindent the code after previous change. X-MFC-With: r262447
| * | Patch 1/2:delphij2014-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | Pet gcc: enclose the for loop that currently do nothing with an if. Reviewed by: sha256(1) X-MFC-With: r262447
| * | Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.tijl2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | PR: 185964 Submitted by: Manuel Mausz <manuel-freebsd@mausz.at> MFC after: 5 days
| * | Fix Simplified Chinese character set conversions by switching around thetijl2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | fields of an internal struct so it corresponds with the way variables of this type are initialised. PR: 185964 Submitted by: Manuel Mausz <manuel-freebsd@mausz.at> MFC after: 5 days
| * | Consistently pass around context information using a simple pointer. Thistijl2014-02-244-17/+15
| | | | | | | | | | | | | | | | | | | | | fixes some dereferencing bugs in Chinese character set conversions. PR: 185964 MFC after: 5 days
* | | Merge from head up to r262415.dim2014-02-234-103/+22
|\ \ \ | |/ /
| * | Lower the level of WARNS to fix build with gccbapt2014-02-231-1/+1
| | |
| * | Remove libyaml, it has been replaced by libuclbapt2014-02-233-103/+0
| | |
| * | Branch libucl to the buildbapt2014-02-231-0/+1
| | |
| * | Import libucl into headbapt2014-02-231-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UCL is heavily infused by nginx configuration as the example of a convenient configuration system. However, UCL is fully compatible with JSON format and is able to parse json files. UCL is used by pkg(8) for its configuration file as well for the manifest format in packages, it will be used in base for the pkg boostrap (signature checking and configuration file parsing.) libucl has been developped and is maintained by vsevolod@
* | | Merge from head up to r262311.dim2014-02-211-3/+3
|\ \ \ | |/ /
| * | Match the correct variable to the variable description.brueffer2014-02-211-3/+3
| |/ | | | | | | | | | | PR: 121173 Submitted by: Thomas Mueller <tmueller at sysgo.com> MFC after: 1 week
* | In lib/msun/ld128/s_expl.c, remove '/*' within block comment, to avoid adim2014-02-211-1/+1
| | | | | | | | warning.
* | For lib/msun, turn off warnings about unknown pragmas, sincedim2014-02-211-0/+1
| | | | | | | | lib/msun/src/e_sqrtl.c uses an unsupported STDC FENV_ACCESS pragma.
* | In lib/libc/sparc64/sys/__sparc_utrap_setup.c, avoid an error aboutdim2014-02-201-1/+1
| | | | | | | | passing a pointer to a const object to sysarch().
* | Add Makefile glue to build the Sparc backend libraries and link themdim2014-02-2022-1/+150
|/ | | | into the clang executable.
*-. Upgrade our copy of llvm/clang to 3.4 release. This version supportsdim2014-02-1641-147/+173
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month
| | * Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):dim2013-12-22397-28930/+67004
| | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841
| * | Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):dim2013-12-221251-82357/+147957
| | | | | | | | | | | | https://llvm.org/svn/llvm-project/llvm/branches/release_34@197841
* | | Switch the hardcoded default hash function from MD5 / DES to SHA512.des2014-02-151-5/+1
| | |
* | | document _JAIL as a possible option to set a cpuset for a jail..jmg2014-02-151-1/+2
| | | | | | | | | | | | MFC after: 3 days
* | | MFV: Import atf-0.20.jmmv2014-02-143-13/+19
| | |
* | | libutil/pw_util.3: Fix two prototypes.eadler2014-02-131-2/+2
| | | | | | | | | | | | | | | | | | Reported by: marino Obtained from: DragonFlyBSD (e82b5d3dfa969bfcda5ffadceccc682b6bdcd077) MFC After: 3 days
* | | Add kvm_getncpus() to obtain mp_ncpus.glebius2014-02-123-1/+18
| | | | | | | | | | | | Sponsored by: Nginx, Inc.
* | | Add bounds check for pteindex / pdeindexemaste2014-02-121-0/+4
| | |
* | | While it isn't too late and kvm_read_zpcpu() function isn't yet usedglebius2014-02-123-4/+4
| | | | | | | | | | | | | | | | | | | | | outside libkvm(3), change its order of arguments, so that it is the same as in kvm_read(). Sponsored by: Nginx, Inc.
* | | add support for building a cross-gdb for ARM... This isn't hooked upjmg2014-02-122-1/+13
| | | | | | | | | | | | | | | | | | | | | to xdev yet as I don't know how to make it work properly... It also isn't heavily tested... Reviewed by: silence on -arm
* | | Expose real size of UMA allocations via libmemstat(3).glebius2014-02-105-1/+19
| | | | | | | | | | | | Sponsored by: Nginx, Inc.
* | | Fix descriptor leak.pjd2014-02-091-1/+1
| | |
* | | Build libstand as a 64-bit library on ppc64emaste2014-02-092-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a to be 32-bit. This is equivalent to r261568 for amd64. Sponsored by: The FreeBSD Foundation
* | | Set errno on inet_ntop(3) failure.kevlo2014-02-071-2/+4
| | | | | | | | | | | | Reviewed by: glebius
* | | Make libstand setjmp work for both 64- and 32-bit ABIs.nwhitehorn2014-02-071-27/+106
| | |
* | | fts: Fix double-free with conflicting concurrent modifications.jilles2014-02-071-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If rare conditions such as concurrent conflicting manipulation of the filesystem occur, fts_read() frees the current FTSENT without adjusting the pointers in the FTS accordingly. A later fts_close() then frees the same FTSENT again. Reported by: pho Tested by: pho MFC after: 1 week
* | | Build libstand as a 64-bit library on amd64emaste2014-02-062-15/+9
| | | | | | | | | | | | | | | | | | | | | The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a to be 32-bit. Sponsored by: The FreeBSD Foundation
* | | Set the malloc alignment to 64 bytes on platforms that use the U-Boot APIian2014-02-054-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device drivers. Recent versions of u-boot run with the MMU enabled, and require DMA-based I/O to be aligned to cache line boundaries. These changes are based on a patch originally submitted by Juergen Weiss, but I reworked them and thus any problems are purely my fault. Submitted by: "Juergen Weiss" <weiss@uni-mainz.de> Reviewed by: imp, nwhitehorn, jhb
* | | Add support for FreeBSD/i386 guests under bhyve.jhb2014-02-052-2/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Similar to the hack for bootinfo32.c in userboot, define _MACHINE_ELF_WANT_32BIT in the load_elf32 file handlers in userboot. This allows userboot to load 32-bit kernels and modules. - Copy the SMAP generation code out of bootinfo64.c and into its own file so it can be shared with bootinfo32.c to pass an SMAP to the i386 kernel. - Use uint32_t instead of u_long when aligning module metadata in bootinfo32.c in userboot, as otherwise the metadata used 64-bit alignment which corrupted the layout. - Populate the basemem and extmem members of the bootinfo struct passed to 32-bit kernels. - Fix the 32-bit stack in userboot to start at the top of the stack instead of the bottom so that there is room to grow before the kernel switches to its own stack. - Push a fake return address onto the 32-bit stack in addition to the arguments normally passed to exec() in the loader. This return address is needed to convince recover_bootinfo() in the 32-bit locore code that it is being invoked from a "new" boot block. - Add a routine to libvmmapi to setup a 32-bit flat mode register state including a GDT and TSS that is able to start the i386 kernel and update bhyveload to use it when booting an i386 kernel. - Use the guest register state to determine the CPU's current instruction mode (32-bit vs 64-bit) and paging mode (flat, 32-bit, PAE, or long mode) in the instruction emulation code. Update the gla2gpa() routine used when fetching instructions to handle flat mode, 32-bit paging, and PAE paging in addition to long mode paging. Don't look for a REX prefix when the CPU is in 32-bit mode, and use the detected mode to enable the existing 32-bit mode code when decoding the mod r/m byte. Reviewed by: grehan, neel MFC after: 1 month
* | | libc/net: fix a portability issueeadler2014-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | * POSIX does not require socklen_t to be unsigned Submitted by: bde MFC After: 1 week (with r261454)
* | | libc/net: Fix some issues in inet6_opt_init() (from RFC 3542):eadler2014-02-041-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The RFC says (in section 10.1) that only when extbuf is not NULL, extlen shall be checked, so don't perform this check when NULL is passed. * socklen_t is unsigned, so checking extlen for less than zero is not needed. Submitted by: swildner@dragonflybsd.org Reviewed by: Mark Martinec <Mark.Martinec+freebsd@ijs.si> Reviewed by: hrs Obtained by: DragonFlyBSD
* | | Fix a typo.brueffer2014-02-031-1/+1
| | | | | | | | | | | | MFC after: 1 week
OpenPOWER on IntegriCloud