summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-05Add an implementation of the Linux "idr" API.Mark Kettenis
2016-04-05Remove completely out-of-date comment about locking protocol.Mark Kettenis
2016-04-05Move inp_laddr assignment after in_pcbpickport(), extend in_pcbpickport()Vincent Gross
as needed. Ok bluhm@
2016-04-05Increase size of the clone bitmap (revised diff after revert). I haveMartin Natano
tested this with fuse _and_ drm on amd64 and macppc. Also tested with cloning bpf (not in the tree) on macppc. ok mikeb "looks correct to me" millert The original commit message is as follows: Increase size of the clone bitmap. A limit of only 64 device clones turned out to be too low for the upcoming work on cloning bpf. The new limit is 1024 device clones. As part of the size increase, the bitmap has been changed to be allocated separately to avoid bloating all device nodes, as suggested by guenther, millert and deraadt. ok millert mikeb
2016-04-05Describe the format used by -s once, and refer to it when documenting -f.Jeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Consistent v6-speak: hostname -> nodename, proxy NDP -> ND proxyJeremie Courreges-Anglas
Discussed with jmc@
2016-04-05Pointless commented-out lines; discussed with jmc@Jeremie Courreges-Anglas
2016-04-05etheraddr -> ether_addr, as in arp(8); discussed with jmc@Jeremie Courreges-Anglas
2016-04-05Remove mention of Turbo Mode from ath(4) since the driver doesn't support itRicardo Mestre
Discussed with and OK from sthen@ stsp@ kettenis@ jsg@
2016-04-05Support processors without unrestricted guest capability.Mike Larkin
ok stefan
2016-04-05Split out the generic GEM code (like Linux did) and switch it over toMark Kettenis
the vma offset manager. This brings us a little bit more isolation between applications as GEM buffers are now tied to a specific /dev/drmX clone. ok jsg@
2016-04-05Add vma offset manager code.Mark Kettenis
ok jsg@
2016-04-05Add atomic_add_unless(), another strange linux interface.Mark Kettenis
ok jsg@
2016-04-05Add a linux-compatible rbtree interface on top of our implementation inMark Kettenis
<sys/tree.h>. From FreeBSD/OFED via DragonFlyBSD. ok jsg@
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificPhilip Guenther
data isn't necessary. ok mpi@, ok&tweak natano@
2016-04-05Update example in comment: setlogin doesn't use {PROTO,DEF}_WRAP() nowPhilip Guenther
2016-04-05Remove the iterator for control connections unfinished and unused.YASUOKA Masahiko
ok claudio
2016-04-04get* can change *lineptr on failurePhilip Guenther
ok sthen@
2016-04-04Remove caveat about only supporting 512-byte sectors.Kenneth R Westerback
2016-04-04Enable creation of softraid volumes using disks with non-512 byteKenneth R Westerback
sectors. Volumes created will present a sector size equal to the largest sector size of the constituent disks. Softraid Metadata version cranks to 6 due to new field. ok jsing@ with tweaks that will follow soon.
2016-04-04Fix memory leak. Call proto_free() always to free proto.YASUOKA Masahiko
Diff from Yuuichi Someya. ok reyk markus
2016-04-04Directly use physical addresses from ELF header for kernel loading.Stefan Kempf
This allows us to remove the 'do_mask' parameters in read_mem and write_mem as well as the address mask operaton itself. ok mlarkin@
2016-04-04Deallocate guest vm_map when the guest gets terminated.Stefan Kempf
That way we no longer leak uvm data structures after a guest VM was shut down. ok mlarkin@
2016-04-04UVM_FLAG_AMAPPAD has no effect anymore, nuke it.Stefan Kempf
This flag caused amaps to be allocated with additional spare slots, to make extending them cheaper. However, the kernel never extends amaps, so allocating spare slots is pointless. Also UVM_FLAG_AMAPPAD only has an effect in combination with UVM_FLAG_OVERLAY. The only function that used both flags was sys_obreak, but that function had the use of UVM_FLAG_OVERLAY removed recently. While there, kill the unused prototypes amap_flags and amap_refs. They're defined as macros already. ok mlarkin@ kettenis@ mpi@
2016-04-04Add sys/queue.h where it's needed. Unbreak userland following recentStuart Henderson
removal from mbuf.h. ok mpi@
2016-04-04fatalx() not fatal().Nicholas Marriott
2016-04-04In udpsockmode codepath dhcpd.c had the promise route for pledge(2) but it wasRicardo Mestre
missing from udpsock_startup() (udpsock.c) which happens earlier and therefore would abort the program due to SIOCGIFADDR ioctl(2) on udpsock_handler Reported by Philip Higgins <phil ! unita.com.au> OK tb@
2016-04-04mbuf.h doenst need queue.h.David Gwynne
move malloc.h down to where its used, and inside _KERNEL. ok deraadt@ mpi@
2016-04-04Hook up ndp -f.Jeremie Courreges-Anglas
Initial diff from Dimitris Papastamos. Support from mikeb@, ok benno@.
2016-04-04Store curcpu pointer in TPIDRPRW.Patrick Wildt
This will especially be helpful in future multiprocessor efforts. ok jsg@
2016-04-04Read cache line sizes from CP15 Cache Type Register.Patrick Wildt
Previously we used the primary data cache's information on how big the cache lines are. The CTR gives us better information about how big the smallest cache line sizes (controlled by the CPU) are. ok jsg@
2016-04-04Reverse search optimization makes no sense (and doesn't work) ifOtto Moerbeek
we are looking for all matches in a line; ok natano@ miilert@ tedu@
2016-04-04use fixed size unsigned variables for reading/writing the control registerJonathan Gray
2016-04-04turns out EVL_ENCAPLEN is 4, not 18 or sizeof(*evl).David Gwynne
2016-04-04Set the SMP/coherency bit in ACTLR on Cortex A models it is documentedJonathan Gray
to exist on. This is required to use ldrex/strex in some cases. ok patrick@
2016-04-03Don't call savectx() from cpu_fork(): the registers saved are overwrittenPhilip Guenther
ok kettenis@
2016-04-03Move the setting of pcb_fsbase out of reset_segs() into its callersPhilip Guenther
ok mpi@
2016-04-03Teach ddb's disassembler about {rd,wr}[fg]sbasePhilip Guenther
ok mpi@
2016-04-03Don't call savectx() from cpu_fork(): the registers saved are overwrittenPhilip Guenther
and the PCB_SAVECTX flag would be a lie. ok kettenis@ mpi@
2016-04-03Remove sparc special-casing from ufsdirhash_init(). This is not requiredMartin Natano
anymore since the kernel VM space increase work done in sparc about one year ago. from Miod Vallat; thanks! ok tobiasu
2016-04-03Add cpu_auxcontrol() to clear and set bits in the implementation/modelJonathan Gray
specific Auxiliary Control Register (ACTLR). ok patrick@
2016-04-03Remove erroneous whitespace added in previous change.Patrick Wildt
2016-04-03Map the bootconfig/FDT area passed by u-boot and try to init FDT on it.Patrick Wildt
If we were passed an FDT, we can completely map the tree and later on copy it somewhere in our control, so it's not overwritten by anything. If we are passed a device tree, we need to grab the information we otherwise would get from the bootinfo struct in another way. We can use the /memory node to parse the machine's memory information. Bootargs are stored in /chosen's bootargs property. This allows us to boot up like before using the board id, but now also allows us to make use of device tree information. ok jsg@
2016-04-03Implement a way to extract memory information from a node. This can bePatrick Wildt
used to extract information about how much RAM is available or where a controller is in the address space and how big its IO space is. Add a way to get the device tree's size. This is helpful to find out how much you need to copy if you want to move the tree somewhere else. Also add helpers to easily retrieve integers from a property. ok jsg@
2016-04-03Remove XSCALE preprocessor checks from a file which is only for ARMv7.Patrick Wildt
ok jsg@
2016-04-03The callers of fdt_next_node() expect it to return NULL if a next nodePatrick Wildt
cannot be found. Due to implementation details, it used to return a pointer to the next node, without checking if it actually exists. Modify fdt_next_node() to only return a next node if it actually exists and implement an internal skip_node() function that keeps the previous behaviour. ok mpi@
2016-04-03Remove __lockbarrier() defines, unused since cpu_lock removal a fewJonathan Gray
years ago. ok dlg@
2016-04-03remove unused cpu_lock codeJonathan Gray
2016-04-03Remove tests for "processing" which was never set. It attempted toJonathan Gray
protect against multiple entries of a function that handled pending soft interrupts. This seems to have been a mistake made when converting code that used simple lock in the 80321 code which got reused in armv7. arm softintr_dispatch() already has mutexes around invoked callbacks which should be enough. Make the pxa2x0 code work the same way which removes the last remaining simple lock use on arm. ok patrick@
2016-04-03Document ``use after free'' error messageOtto Moerbeek