summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
2016-05-11fix compile issues in MD sigreturn(2)Peter Hessler
OK deraadt@
2016-05-11fix sigcookie value, address was off due to trapframe nestingTheo de Raadt
notice by miod
2016-05-11crank to 6.0-betaTheo de Raadt
2016-05-11Add the sigcontext cookie clearing block, which was missed in the previousTheo de Raadt
commit.
2016-05-11Use round_blocksize() to determine the maximum hardware block size (inAlexandre Ratchov
bytes) then, adjust the block size accordingly. Fixes zaudio(4) not starting when large blocks are requested. Found and reported by Andre Smagin <as at smagin.com>, thanks.
2016-05-11Another attempt to make the mips64 pmap MP-safe. Now at leastVisa Hankala
pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) should be safe to use without the kernel lock. No objection from deraadt@
2016-05-11Add an efibind.h for arm; from FreeBSD.Mark Kettenis
2016-05-11Move EFI header files to a location where they can be used on otherMark Kettenis
architectures besides amd64. ok deraadt@, krw@
2016-05-11Dont reuse "mult" local variable. Use separate variable for hardwareAlexandre Ratchov
block size multiplier (in bytes) and for the driver block size multiplier (in frames). No behaviour change.
2016-05-10If sendsyslog(2) is called with LOG_CONS before syslogd(8) has beenAlexander Bluhm
started and before init(8) has opened the console, the kernel could crash as the console device has not been initialized. Open /dev/console in the kernel before starting init(8) and keep it open. This way sendsyslog(2) can be called early in the system. OK beck@ deraadt@
2016-05-10make the bpf tap functions take const struct mbuf *David Gwynne
this makes it more obvious that the bpf code should only read packets, never modify them. now possible because the paths that care about M_FILDROP set it after calling bpf_mtap. ok mpi@ visa@ deraadt@
2016-05-10SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookieTheo de Raadt
inside the sigcontext. sigreturn(2) checks syscall entry was from the exact PC addr in the (per-process ASLR) sigtramp, verifies the cookie, and clears it to prevent sigcontext reuse. not yet tested on landisk, sparc, *88k, socppc. ok kettenis
2016-05-10The hppa trapframe PC is marked (in the low two bits) to indicate aTheo de Raadt
userland addressspace address. Those bits should be masked to callers of the PROC_PC() macro. ok kettenis
2016-05-10Fill Xen hypercall page with int3's like the hypervisor does.Mike Belopuhov
Idea from deraadt@ and mlarkin@.
2016-05-10make qla_iocb_seg structs 4 byte aligned and use htolem32 to set it.David Gwynne
shaves ~256 bytes off of qla_put_data_seg on sparc64 ok kettenis@ jmatthew@
2016-05-10FFS2 does lazy inode initialization, so try harder to avoid usingKenneth R Westerback
random data on the disk as an inode. Thus avoiding crashes when translating a bogus filehandle to a vnode. Yes, I'm looking at you, NFS! Adapted from a diff by Christos Zoulas via NetBSD, pointed out by kurt@. ok beck@
2016-05-10make bpf_mtap callers set the M_FILDROP flag if they care about it.David Gwynne
ok mpi@
2016-05-10rename an unused field in struct kinfo_file (it related to systrace..)Theo de Raadt
2016-05-092nd identical definition of PROC_PC macro is not neededTheo de Raadt
from miod
2016-05-08Add DMA support. It uses ADMA2 "Internal DMA" that is compatible with theMark Kettenis
SD Host Controller standard. ok patrick@
2016-05-08Add support for level, active low gpio interrupts.Mark Kettenis
2016-05-08Additional parameter for amap_alloc().Stefan Kempf
It is supposed to control whether an amap should allocate memory to store anon pointers lazily or upfront. Needed for upcoming amap changes. ok kettenis@
2016-05-08Wait for RAM in uvm_fault when allocating uvm structures failsStefan Kempf
Only fail hard when running out of swap space also, as suggested by kettenis@ While there, let amap_add() return a success status and handle amap_add() errors in uvm_fault() similar to other out of RAM situations. These bits are needed for further amap reorganization diffs. lots of feedback and ok kettenis@
2016-05-08Add support for writing gpio pins.Mark Kettenis
2016-05-08Make sure devices listed by a device's _DEP method are attached beforeMark Kettenis
we attach the device itself. The _DEP methode, introduced in ACPI 5.0, is a hint that the device in question depends on OpRegion support from the devices listed by _DEP, so we have to order them the proper way. To prevent us from attaching those devices again when we encounter them later walking down the device tree, keep track of our attempts to attach a device driver to them using aflag in the aml_node structure. ok guenther@
2016-05-08Call _REG to register GeneralPuproseIo address space support.Mark Kettenis
2016-05-08Plug some memory leaks and do proper cleanup in error paths.Mark Kettenis
2016-05-08Do not export the IFXF_MPSAFE flag to userland, it is a kernel-onlyMartin Pieuchot
hint. ok kettenis@, deraadt@
2016-05-08Add macros for interrupt trigger mode as encoded in GPIO resources.Mark Kettenis
2016-05-07Add chvgpio(4), a driver for the GPIO controllers found on Intel's Cherry ViewMark Kettenis
SoC.
2016-05-07Flush page (through the direct map) before mapping it into AGP. FixesMark Kettenis
artifacts seen in X on some G5 machines. Unfortunately not enough to fix G4 machines. With help from Marcus Glocker. ok mpi@
2016-05-07Declare moncontrol(3) APIs in <sys/gmon.h>Philip Guenther
Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
2016-05-07Implement ACPI 5.0 GeneralPurposeIo OpRegion support. This basically allowsMark Kettenis
AML to peek and poke at GPIO pins as if it were reading and writing registers. For now this only implements peeking at pins. It will print a message if AML attempt to poke at a pin. And it will panic if the assumptions made in the code are violated. ok mlarkin@
2016-05-07Add defines for Operation Region Address Space Identifiers and use them whenMark Kettenis
acpiec(4) calls the _REG method. ok mlarkin@
2016-05-07Stop printing the "ioapic0: misconfigured as apic..." messages. BasicallyMark Kettenis
all modern machines are "misconfigured". We simply have to configure them and it is pointless to complain.
2016-05-07Remove duplicate check.Martin Pieuchot
ok sthen@, visa@
2016-05-07Use rtalloc_mpath() when checking for local route entries because weMartin Pieuchot
are now using the returned route for forwarding as well. This restore the behavior of r1.274 when using mpath entries for forwarding. ok visa@, henning@
2016-05-07set the high speed enable bit if the timing isn't SDMMC_TIMING_LEGACYJonathan Gray
ok patrick@ kettenis@
2016-05-07add support for changing the bus width and set the 4-bit mode capabilityJonathan Gray
ok patrick@ kettenis@
2016-05-06Reset the bus width back to 1-bit when resetting the host. Makes imxesdhc(4)Mark Kettenis
work on the cubox-i, whereu-boot leaves the controller in 4-bit mode.
2016-05-06Revert the previous commit. There still are bad interactions between theMark Kettenis
pagedaemon and the buffer cache. requested by deraadt@
2016-05-06Make sure we always update both bits that control the bus width. Also makeMark Kettenis
sure that we reset the bus width (to 1-bit) after powering up the bus. Apparently the register write fails if the bus isn't powered on. Implement the chip callback function and advertise 4-bit bus support. ok stsp@
2016-05-06Round the requested clock frequency down to a support value instead ofMark Kettenis
insisting on an exact match. Add support for a 50 MHz clock. ok stsp@
2016-05-06Fix the DMA transfer code to repect the block size in the sdmmc command.Mark Kettenis
ok stsp@
2016-05-06Fix efiboot not to hang with a disk whose block size < 512.YASUOKA Masahiko
Report and diff from Vegar Linge Haaland ok krw
2016-05-05r1.10 of if_bnx.c effectively removed the limit on the number of segments inJonathan Matthew
the tx dma maps, apparently to allow heavily fragmented packets to be sent. The tx ring accounting in bnx_start assumed that the longest fragment chain we'd see was BNX_MAX_SEGMENTS, so sending a heavily fragmented packet when the ring was already full could cause it to overflow. In the 10 years since r1.10, we've started defragmenting packets if they won't fit in the dma map, so we can limit the maps to BNX_MAX_SEGMENTS again. While we're here, ensure there's always at least one slot on the tx ring free, for consistency between drivers. Fixes packet corruption seen by otto@ ok mpi@ dlg@
2016-05-05Bump up the clock to 25 MHz before trying to read the SCR register of an SDMark Kettenis
card. Data transfers don't seem to work on the Realtek RTS5229 Card Reader if the clock frequency is too low, and reading the SCR requires a data transfer.
2016-05-05Remove uvm_mapentry_freecmp which has been unused for yearsStefan Kempf
Found by David Hill with clang.