summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-05-18Accept cnmac as a valid rootdev from uboot on octeon.Visa Hankala
Example: rootdev=/dev/cnmac0 Patch from Kim Lidstrom, thanks!
2016-05-18Remove unnecessary cast of buflen to u_int in sockargs(). This wasTodd C. Miller
missed when buflen was promoted to size_t. OK tedu@
2016-05-17Allow sendsyslog(2) with LOG_CONS even when /dev/console has notAlexander Bluhm
been opened during init(8). Only log with cnwrite() if cn_devvp exists, otherwise use cnputc() as fallback. While there move extern declarations to dev/cons.h. input and OK deraadt@
2016-05-17Backout the previous fix for the sendsyslog(2) with LOG_CONS solution.Alexander Bluhm
Permanently holding /dev/console open in the kernel works only until init(8) calls revoke(2). After that the console device vnode cannot be used anymore. It still resulted in a hanging init(8) if it tried to syslog(3) something. With the backout also dmesg -s works again.
2016-05-17Fix a few more warnings such that this compiles again.Mark Kettenis
2016-05-17Enable -Wall -Werror. Fix warnings uncovered by this.Mark Kettenis
Set board IDs for i.IMX6 boards based on the "compatible" property of the root node for now to ease the transition to full FDT support in the kernel.
2016-05-17Add support for passing an FDT. The bootloader will update the "bootargs"Mark Kettenis
property of the "/chosen" node to pass arguments to the kernel.
2016-05-17Change the random event buffer from a queue to an endless ring. This wayTed Unangst
we don't drop any events when the queue is full. They are instead mixed into previous events. The mixing function selected is addition instead of xor to reduce the possibility that new values effectively erase existing ones. Convert some types to u_int to ensure defined overflow. ok deraadt djm
2016-05-17remove VOP_CLOSE and vput that will be handled in the epilogue.Ted Unangst
part of a diff by bytevolcano. ok jung
2016-05-17Completely skip link-layer address resolution and NUD on gif(4).Martin Pieuchot
Tested by naddy@
2016-05-17Plug some gaping holes in the v4l2 ioctl interfaces that would leak kernelMark Kettenis
memory to a local user. Found by Patrick Keshisian. Fix a potential integer overflow issue in related code while I'm there. ok mglocker@, deraadt@
2016-05-17Document NOLOCK, from Michal Mazurek.Martin Pieuchot
2016-05-17Enable the pcf8523 RTC on Hummingboard and CuBox-i.Mark Kettenis
ok patrick@
2016-05-16Attempt to clear the OS flag when we attach.Mark Kettenis
2016-05-16Add pcfrtc(4).Mark Kettenis
2016-05-16Make this actually work. This makes the following changes:Mark Kettenis
- Move most of the bus setup stuff to imxiic_i2c_acquire_bus() - Move the teardown to imxiic_i2c_release_bus() - Always clear the IIF flag - Allow cmd and data for write operations. Some i2c operations are still rejected, but this works well enough to use pcfrtc(4). ok patrick@
2016-05-16Use OF_is_compatible(9) here.Mark Kettenis
ok patrick@
2016-05-16Introduce OF_is_compatible(9), a convenience function to check the "compatible"Mark Kettenis
property of an OFW/FDT node. ok deraadt@, pactrick@
2016-05-16POSTREAD needs to flush the D-cache since speculative loads might (and do)Mark Kettenis
bring back cache lines after a PREREAD. Eliminates random data corruption on my CuBox-i4Pro. ok jsg@
2016-05-16Driver for the NXP PCF8523 Real Time Clock.Mark Kettenis
2016-05-16Implement membar(9) for armv5. As there are no barrier instructions inJonathan Gray
armv5 this is just a "memory" clobber hint to the compiler. ok kettenis@
2016-05-16fix perms (previous cleanup commit introduced part of an unrelated change)Mike Larkin
2016-05-16enable reception and transmission of jumbo frames.David Gwynne
xge can go up to 9622 bytes in a frame. support for rx ring moderation is coming. from marisa emerson
2016-05-16spaces -> tabsMike Larkin
2016-05-16default to int3 padding if we ever introduce ENTRY/NENTRY pads hereMike Larkin
ok deraadt@
2016-05-16place .globals further up, to reduce confusionTheo de Raadt
2016-05-16Pad end of code in the MP trampoline with int3 instead of 0x0 as it isMike Larkin
certain we don't want an intentional sled here either. ok deraadt@
2016-05-16Use int3 padding instead of nop in the ACPI resume trampoline, as it isMike Larkin
certain no intentional nop sled is required here. ok deraadt@
2016-05-15Implement TCB_{GET,SET} using PAL_{rd,wr}unique.Philip Guenther
Inline asm from NetBSD testing deraadt@
2016-05-15Give the 32-bit and 64-bit EFI boatloaders different names such that we canMark Kettenis
tell which one we're using. ok deraadt@, krw@
2016-05-15Sync with the ADMA2 implementation in imxesdhc(4):Mark Kettenis
Map the ADMA2 descriptor table use BUS_DMA_COHERENT and add a missing bus_dmamap_sync(9). Doesn't really fix anything, but adding the missing sync makes the code more correct. Using BUS_DMA_COHERENT avoids some cache flushes on architectures that implement it.
2016-05-15Map the ADMA2 descriptor table use BUS_DMA_COHERENT and add a missingMark Kettenis
bus_dmamap_sync(9). Doesn't really fix anything, but adding the missing sync makes the code more correct. Using BUS_DMA_COHERENT avoids some cache flushes.
2016-05-15remove chroot(2) from allowed syscalls under pledge(2).Sebastien Marie
please note that chrooted process are still possible with pledge(2), but only if the chroot(2) is done *before* calling pledge(2). Once pledged, no more chroot(2) call are permitted.
2016-05-14Since GetTime() doesn't work on U-Boot, use timer events to simulate a clockMark Kettenis
that ticks at every second. This makes the boot prompt timeout work.
2016-05-14Move rpm read to a own function analog pwm read. No functional change.Marcus Glocker
ok kettenis
2016-05-14Fix typo; M_NOWAIT should be EX_NOWAIT. Fortunately this was harmless.Mark Kettenis
2016-05-14Add support for pwm fans.Marcus Glocker
ok kettenis
2016-05-14Handle boot options, and pass the boot device to the kernel. The boot deviceMark Kettenis
is currently hardcoded to be sd0. Still need to figure out how we will do proper boot device selection when we start using the FDT.
2016-05-14Make getsecs() return 0 if EFI doesn't tell us the time.Mark Kettenis
2016-05-14Tell the kernel where its symbols are.Mark Kettenis
2016-05-14Load the kernel at the address pre-allocated by the EFI bootloader.Mark Kettenis
2016-05-14Need some startup assembly code as well.Mark Kettenis
2016-05-14Initial stab at an EFI bootloader for armv7. Bits and pieces from FreeBSDMark Kettenis
and our amd64 EFI bootloader. The current code works on a 2GB CuBox-i, but probably not on anything else. It needs a u-boot with EFI loader support.
2016-05-14Return correct rpm values for all fans.Marcus Glocker
ok kettenis
2016-05-13Unbreak build when AUDIO_DEBUG is defined: fix printf(9) formatAlexandre Ratchov
mistakes.
2016-05-13contrary to documentation and other implementations, kevent was preventingTed Unangst
a process from watching other users' procs. but there are no secrets here. remove that check. at the same time, note that as far as pledge is concerned, while most of kevent is a "stdio" type operation, process monitoring belongs to the "proc" family, so add an additional check here. ok deraadt millert
2016-05-12If writing the control register fails, bail out without attaching any sensors.Mark Kettenis
From Marcus Glocker, who has an Apple G5 machine where an advertised sensor isn't there, and plodding on creates annoying dmesg spam.
2016-05-12Fix "comma at end of enumerator list" warningsDavid Coppa
Sure stsp@
2016-05-12Remove bogus rw_exit() call.Mark Kettenis
2016-05-11delete SROP mitigation debug code; it worksTheo de Raadt