summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r269954:dim2014-08-172-2/+2
| | | | | | Stop telling people to directly report llvm or clang bugs upstream, point them to the FreeBSD bug tracker instead, since we use our own patches.
* MFC r269948:dim2014-08-171-1/+1
| | | | | | | | | | | | | | | Supplement r259111 by also using correct casts in gcc's emmintrin.h for the first argument of the following builtin function: * __builtin_ia32_psrlqi128() takes __v2di instead of __v4si This should fix the following errors when building the graphics/webp port with base gcc: lossless_sse2.c:403: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128' lossless_sse2.c:404: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128' Reported by: Jos Chrispijn <ports@webrz.net>
* MFC r269457:kib2014-08-174-65/+93
| | | | Remove Giant acquisition from the mount and unmount pathes.
* MFC r269020:mjg2014-08-171-5/+4
| | | | | | | | Cosmetic changes to unp_internalize Don't throw away the result of fget_unlocked. Move fdp increment to for loop to make it consistent with similar code elsewhere.
* MFC r268636:mjg2014-08-171-1/+1
| | | | Plug p_pptr null test in do_execve. It is always true.
* MFC r268634:mjg2014-08-172-11/+8
| | | | Manage struct sigacts refcnt with atomics instead of a mutex.
* MFC r264114, r264310, r268570:mjg2014-08-171-31/+55
| | | | | | | | | | | | | | | | | r264114 by davidxu: Fix SIGIO delivery. Use fsetown() to handle file descriptor owner ioctl and use pgsigio() to send SIGIO. r264310 by davidxu: Add kqueue support for devctl. r268570: Clear nonblock and async on devctl close instaed of open. This is a purely cosmetic change.
* MFC r268514:mjg2014-08-171-6/+3
| | | | | | Eliminate plim and vtmp local vars in exit1. No functional changes.
* MFC r259407:mjg2014-08-171-2/+0
| | | | | | | proc exit: don't take PROC_LOCK while freeing rlimits Code wishing to check rlimits of some process should check whether it is exiting first, which current consumers do.
* MFC r268505, r268507:mjg2014-08-171-17/+31
| | | | | | | | | | | | | | | | Avoid relocking filedesc lock when closing fds during fdp destruction. Don't call bzero nor fdunused from fdfree for such cases. It would do unnecessary work and complain that the lock is not taken. ======= Don't zero fd_nfiles during fdp destruction. Code trying to take a look has to check fd_refcnt and it is 0 by that time. This is a follow up to r268505, without this the code would leak memory for tables bigger than the default.
* MFC r268365:mjg2014-08-171-2/+4
| | | | | | | | Don't call crdup nor uifind under vnode lock. A locked vnode can get into the way of satisyfing malloc with M_WATOK. This is a fixup to r268087.
* MFC r268136:mjg2014-08-171-1/+3
| | | | Plug gcc warning after r268074 about unitialized newsigacts
* MFC r268087:mjg2014-08-171-10/+10
| | | | Don't call crcopysafe or uifind unnecessarily in execve.
* MFC r268074:mjg2014-08-172-10/+5
| | | | | | | | | | Perform a lockless check in sigacts_shared. It is used only during execve (i.e. singlethreaded), so there is no fear of returning 'not shared' which soon becomes 'shared'. While here reorganize the code a little to avoid proc lock/unlock in shared case.
* MFC r267338grehan2014-08-171-50/+47
| | | | Replace enum forward declarations with complete definitions
* MFC r269688: m4 now requires libohash, build it when bootstrapping.ian2014-08-171-1/+2
|
* MFC r269769, r269770:ian2014-08-171-13/+27
| | | | | | | | Use a separate variable for resource id, because 'i' may increment at a rate greater than 1 on each iteration. Handle various ways that interrupt config data can be malformed by warning and assuming more or less reasonable values.
* MFC r269646: Use a SYSINIT to init the array of interrupt names on arm.ian2014-08-172-3/+5
|
* MFC r269607, r269698:ian2014-08-172-5/+15
| | | | | | | Cache the imx6 SoC type in a static var so that it only has to be figured out by sniffing hardware registers once. Add a missing clock register definition.
* MFC r269594, r269596, r269597, r269598, r269605, r269606:ian2014-08-1711-34/+78
| | | | | | | | | | | | | | | | | | | | | Set ofwbus and simplebus to attach during BUS_PASS_BUS. Define names that drivers can use to adjust their position relative to other drivers within a BUS_PASS Adjust ofwbus and simplebus to attach at BUS_PASS_ORDER_MIDDLE, so that a platform can attach some other bus first if necessary. Set the pl310 L2 cache driver to attach during the middle of BUS_PASS_CPU. Attach arm generic interrupt and timer drivers in the middle of BUS_PASS_INTERRUPT and BUS_PASS_TIMER, respectively. Add an arm option, ARM_DEVICE_MULTIPASS, used to opt-in to multi-pass device attachment on arm platforms. If this is defined, nexus attaches early in BUS_PASS_BUS, and other busses and devices attach later, in the pass number they are set up for. Without it defined, nexus attaches in BUS_PASS_DEFAULT and thus so does everything else, which is status quo.
* MFC r267311, r267330, r267811, r267884grehan2014-08-1711-60/+146
| | | | | | | | | | | | Turn on interrupt window exiting unconditionally when an ExtINT is being injected into the guest. Add helper functions to populate VM exit information for rendezvous and astpending exits. Provide APIs to directly get 'lowmem' and 'highmem' size directly. Expose the amount of resident and wired memory from the guest's vmspace
* MFC r267178, r267300grehan2014-08-173-53/+192
| | | | | | Support guest accesses to %cr8 Add reserved bit checking when doing %CR8 emulation and inject #GP if required.
* MFC r269387: Update the ARMv6 core clang targets to be an arm1176jzf-s.ian2014-08-172-2/+4
|
* MFC r267216grehan2014-08-179-85/+177
| | | | | | Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintained by vmm.ko. This allows the virtual machine to be restarted without having to destroy it first.
* MFC r266933grehan2014-08-1710-18/+171
| | | | | Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing it implicitly in vmm.ko.
* MFC: r269771rmacklem2014-08-161-4/+3
| | | | | | Change the NFS server's printf related to hitting the DRC cache's flood level so that it suggests increasing vfs.nfsd.tcphighwater.
* MFC r264601,264646,265766,267918,267919,267920:bz2014-08-1611-1/+1365
| | | | | | | | | | | | | | | | | | | | | | | Merge if_nf10bmac(4), a driver to support an NetFPGA-10G Embedded CPU Ethernet Core. The current version operates on a simple PIO based interface connected to a NetFPGA-10G port. To avoid confusion: this driver operates on a CPU running on the FPGA, e.g. BERI/mips, and is not suited for the PCI host interface. Adjust the register layout to allow for 64bit registers in the future for nf10bmac(4). Also, add support for and enable RX interrupts. Allow switching between 32bit and 64bit bus width data access at compile time by setting NF10BMAC_64BIT and using a REGWTYPE #define to set correct variable and return value widths. Adjust comments to indicate the 32 or 64bit register widths. Relnotes: yes Sponsored by: DARPA/AFRL
* MFC r263632:bz2014-08-162-1/+13
| | | | | | | | | | | For BERI on NetFPGA assume HZ=100 by default. Remove the uart support in favour of a "jtag-uart" interface imitation providing a much simpler interface, directly exported to the host, allowing the toolchain to be shared with BERI on Altera. [1] Submitted by: Jong Hun HAN (jong.han cl.cam.ac.uk) [1] Sponsored by: DARPA/AFRL
* MFC r264542:bz2014-08-161-2/+2
| | | | | | | | | | | Use ETHER_ALIGN as argument to m_adj() to offset the beginning of packet rather than the magic number 2. While here fix a typo in a comment. No functional changes. Sponsored by: DARPA/AFRL
* MFC r264605:bz2014-08-161-0/+49
| | | | | | | | | | | | | Based on xlp_machdep.c and completed the list of options based on boot/mips/beri/loader/metadata.c allow FDT configuration to set command line options. This leads to an interesting quesiton of future interactions with loader. However for configurations without loader this allows bootverbose or boot single user to be set by compiling a new kernel, which is good enough for testing and debugging. Reviewed by: rwatson Sponsored by: DARPA/AFRL
* MFC r266907:bz2014-08-161-1/+1
| | | | | While PAWS is disabled, there are no consumers for the tcp options argument to tcp_twcheck(); thus mark it __unused.
* MFC r266620:bz2014-08-161-4/+0
| | | | | | Remove the prototpye for the static inline function tcp_signature_verify_input(). The function is defined before first use already.
* MFC r266619:bz2014-08-161-2/+1
| | | | | syncache_lookup() is a file local function. Make it static and take it out of the public KPI; seems it was never used elsewhere.
* MFC r266618:bz2014-08-162-2/+2
| | | | | Make tcp_twrespond() file local private; this removes it from the public KPI; it is not used anywhere else and seems it never was.
* MFC r266606:bz2014-08-161-6/+20
| | | | | Only do a ports check if this is a NAT-T SA. Otherwise other lookups providing ports may get unexpected results.
* MFC r266597:bz2014-08-161-2/+0
| | | | | | | | Remove the prototypes for things that are no longer file local but were moved to the header file. Was suppoed to be MFCed with: r266596 Pointy hat to: bz
* MFC r266596:bz2014-08-163-31/+21
| | | | | | | | Move the tcp_fields_to_host() and tcp_fields_to_net() (inline) functions to the tcp_var.h header file in order to avoid further duplication with upcoming commits. Reviewed by: np
* MFC r264539:bz2014-08-161-6/+6
| | | | | | | | | | When switching variables to flags in r243185 a few cases were missed. After r263152 (in head) this leaves unused variables if route(8) is compiled without INET support. Switch the remaining variable accesses to flags and remove now obsolete variables. Reviewed by: glebius
* MFC r261525:bz2014-08-161-0/+11
| | | | | Print the MD5 signature information introduced in r221023 (head) in the TCP statistics output.
* MFC r259886:bz2014-08-161-101/+0
| | | | | | | | Bite the bullet and start removing the first compile time warnings by removing unsued file local functions and then unused callees. A lot more warnings to resolve but someone had to break the ice. X-Comment: I am not the new maintainer; chime in, it's ours.
* MFC r259916:bz2014-08-164-4/+35
| | | | | | | | | | Use feature_present(3) to determine whether to open an INET or an INET6 socket when needed to allow pfctl to work on noinet and noinet6 kernels (and try to provide a fallback using AF_LINK as best effort). Adjust the Makefile to also respect relevant src.conf(5) options for compile time decisions on INET and INET6 support. Reviewed by: glebius (no objections)
* MFC r259885:bz2014-08-161-2/+1
| | | | | As constantly reported during kernel compilation, m_buflen is unsigned so can never be < 0. Remove the expression, which can never be true.
* MFC r259884:bz2014-08-161-4/+3
| | | | | | Correct warnings comparing unsigned variables < 0 constantly reported while building kernels. All instances removed are indeed unsigned so the expressions could not be true.
* MFC r269583:bz2014-08-162-1/+55
| | | | | | | | | | | | | | Provide -o vers= support for mount_nfs. Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version. OSX (these days), Solaris, and Linux use -o vers=<2,3,4>. With the upcoming autofs support we can make a lot of (entrerprisy) setups getting mount options from LDAP just work by providing -o vers= compatibility. Reviewed by: wblock, bjk (man page), rmacklem, emaste Sponsored by: DARPA,AFRL PR: 192379
* MFC r269669:bz2014-08-162-2/+10
| | | | | | | Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant and export the kern_ version needed by an upcoming linuxolator change. Sponsored by: DARPA,AFRL
* MFC r269909:kib2014-08-162-1/+12
| | | | | | Add a knob LIBPTHREAD_BIGSTACK_MAIN, which instructs libthr to leave the whole RLIMIT_STACK-sized region of the kernel-allocated stack as the stack of main thread.
* MFC r269908:kib2014-08-161-1/+1
| | | | Style.
* MFC r268924:pfg2014-08-161-9/+16
| | | | | | | | | | | Update fflush(3) to return success on a read-only stream. This is done for compliance with SUSv3. The changes cause no secondary effects in the gnulib tests (we pass them). Obtained from: Apple Inc. (Libc 997.90.3 with changes) Reviewed by: bde Phabric: D440
* MFC r269953:pfg2014-08-161-1/+1
| | | | | | | | | | | | | | Use "NO NAME" as the default unnamed label. Microsoft recommends avoiding the use of spaces in the string structures for FAT. Unfortunately they do just that by default in the case of unlabeled filesystems. Follow the default MS behavior to avoid confusion in common tools like file(1). This was actually the default behavior before r203868. Obtained from: NetBSD (CVS rev. 1.39)
* MFC r269901:pfg2014-08-161-7/+7
| | | | | | Minor style tweaks. Obtained from: OpenBSD (CVS rev. 1.7)
OpenPOWER on IntegriCloud