summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-04-15Build sparc64 kernels with -ffreestanding.Mark Kettenis
2017-04-15After forced unmount of a file system that has other mount pointsAlexander Bluhm
in it, dangling mounts could remain. When unmounting check the hierarcy and unmount recursively. Also prevent that a new mount appears during the scan. Joint work with natano@; testing and OK krw@
2017-04-15The tlb flushes in pmap_set_{l1,l2,l3} use ranges that don't fully make sense.Mark Kettenis
But those tlb flushes shouldn't be necessary anyway, so simply remove them. Simplify the tlb flushing code now that we no longer flush ranges, and revive the branch that doesn't flush a specific ASID for the kernel pmap since its mappings are global. ok patrick@, visa@
2017-04-15Fix format string in ACPI_MEMDEBUG blockPhilip Guenther
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
2017-04-15Sync bus_dmamap_load_raw() with amd64 for better constraint checking.Visa Hankala
Needed by xhci(4).
2017-04-15No GMX on CN73xx.Visa Hankala
2017-04-14Remove unused define satoin6().Alexander Bluhm
2017-04-14Pass down the address family through the pr_input calls. ThisAlexander Bluhm
allows to simplify code used for both IPv4 and IPv6. OK mikeb@ deraadt@
2017-04-14Avoid some false positives with cppcheck. No binary change.Alexander Bluhm
OK jsg@
2017-04-14Define __dead and __pure even if __STRICT_ANSI__ for compilers thatMark Kettenis
support GCC's __attribute__ syntax. Fixes several warnings when compiling code with clang with -std=c++11 or some other strict ISO standard. ok millert@, guenther@
2017-04-14SVM: calculate max ASID value and save for later use. This will be used inMike Larkin
an upcoming diff to handle ASID/VPID reuse/rollover.
2017-04-13A little bit more trivial cleanup.Mark Kettenis
2017-04-13Use the non-interrupt-safe pool allocator for the vp pool to avoid runninngMark Kettenis
out of kva in the kmem_map. Avoids a hang when spawning a lot of processes.
2017-04-13regenPhilip Guenther
2017-04-13Delete the getlogin59 syscall, which was last used one year, two releases,Philip Guenther
and four libc major versions ago ok sthen@ jsing@ deraadt@ jca@
2017-04-13Provide mips64 with kernel-facing TCB_{GET,SET} macros that store itPhilip Guenther
in struct mdproc. With that, all archs have those and the __HAVE_MD_TCB macro can be unifdef'ed as always defined. ok kettenis@ visa@ jsing@
2017-04-12The kernel has to slightly different version of SipHash_Final but withFlorian Obser
the same bug as just fixed in userland: ---------- SipHash_Final() was assuming the digest was 64-bit aligned, resulting in misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert ---------- OK deraadt@
2017-04-12Correct a format stringPhilip Guenther
Problem noted by Michael W. Bombardieri (mb(at)ii.net) ok mlarkin@ deraadt@
2017-04-11Add SIOCATMARK to allow pledge("inet") programs to call sockatmark(3).Alexander Bluhm
from Matthias Pitzl; OK deraadt@
2017-04-11Recognize break conditions and enter ddb if ddb.console is set.Mark Kettenis
ok visa@, deraadt@
2017-04-11Partially revert previous mallocarray conversions that containDavid Hill
constants. The consensus is that if both operands are constant, we don't need mallocarray. Reminded by tedu@ ok deraadt@
2017-04-11Revise 'struct fpreg' and dump floating-point register in core dumps. AlsoMark Kettenis
reset the floating-point register state upon exec. ok guenther@
2017-04-10Use __ASSEMBLER__ instead of __LANGUAGE_ASSEMBLY.Visa Hankala
The latter is not defined by clang. OK guenther@, kettenis@
2017-04-10Attempt to map msk(4) interrupt via MSI.Jonathan Gray
The device tree that ships with the overdrive 1000 has an interrupt-map property that is known to be wrong. Using MSI on msk makes the builtin Ethernet on the overdrive 1000 work. Tested on arm64 with "Marvell Yukon 88E8059" rev 0x00, Yukon-2 Optima (0x1) and i386 with "Marvell Yukon 88E8072" rev 0x10, Yukon-2 Extreme rev. B0 (0x2) Committing this early in the release cycle to try find cases where using MSI doesn't work. Based on part of an earlier patch from jmatthew@ ok jmatthew@ kettenis@
2017-04-09malloc -> mallocarray; a typoTheo de Raadt
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert a malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Use mallocarray to allocate multicast group memberships.David Hill
ok deraadt@
2017-04-09Correct wakeup() dance in sensor_task_work()Theo de Raadt
Problem noticed by krw
2017-04-08For legacy interrupt use the tag of the topmost bridge to establish theMark Kettenis
interrupt. We already correctly swizzle the pin. ok patrick@
2017-04-08Bring over the changes I made to the armv7 version of this driver such thatMark Kettenis
interrupts are correctly routed to the boot cpu if that isn't the one connected to CPU interface zero on the interrupt controller. ok patrick@
2017-04-08re-enable POOL_DEBUG after the release; ok deraadt@Christian Weisgerber
2017-04-08Make network ports work on Shasta.Visa Hankala
2017-04-08Sensors are run as callbacks inside tasks. During suspend a sensorTheo de Raadt
could be running inside a driver that will be force-detached, or due to tsleep end up disrupting the softstate/hardstate contract. At suspend time, quisce all these callbacks by waiting for completion. This issue has never been observed for real, but may be implicated in suspend/resume failures. ok kettenis guenther mlarkin
2017-04-08Use ADDR64 opcodes to specify 64bit DMA addresses for all buffers. ThisJonathan Matthew
consumes two ring entries per segment, halving the effective size of the rings, but keeps things simple. This is required for the onboard nic on the Overdrive 1000 to work. ok kettenis@, tested on i386 by jsg@
2017-04-08Remove some #if 0 code that dates back to r1.1Mike Larkin
Pointed out by Michael W. Bombardieri
2017-04-08A pile of sizes to free(9). In test for a few days in snapshots.Theo de Raadt
Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
2017-04-08Two prototypes for acpi_maptable; merge to one placeTheo de Raadt
2017-04-07Add prid for CN72xx/CN73xx.Visa Hankala
2017-04-07Make SoC version available in a simple form.Visa Hankala
2017-04-07si_addr should be of type void *, not char *Philip Guenther
From Andrew Aldridge (i80and(at)foxquill.com) ok millert@ mpi@
2017-04-07Simplify the size calculation for memset()Philip Guenther
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
2017-04-06Convert bcopy to memcpy where the memory does not overlap, otherwise,David Hill
use memmove. While here, change some previous conversions to a simple assignment. ok deraadt@
2017-04-06Sizes for the remaining free() calls, and use mallocarray()Theo de Raadt
ok visa
2017-04-06Use the correct interrupt disestablish routine.Visa Hankala
2017-04-06Extend the fdt interrupt API a little.Visa Hankala
2017-04-06Replace bcopy with a simple assignment where both variables areDavid Hill
properly aligned and sockaddr_union fields, or with memcpy when the memory doesn't overlap. OK bluhm@