summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-06-20Fix some hibernate issues on machines with > 3.5GB phys memMike Larkin
ok deraadt@
2012-06-20Cleanup our filesystem pathconf() code a little bit to make it easierMatthew Dempsky
to diff against FreeBSD's. From Brad; no object file change on amd64.
2012-06-20Copy the set_tls_base flag when forking.Paul Irofti
This enables the linux_child_return bits that set the TLS base in the newly forked process. Before this, processes that had the flag set would get a null pointer and segfault when trying to access the TLS area. Chased down and fixed by me. Turned into a proper one line diff by guenther@.
2012-06-20- urndis_match() should support multiple interface descriptors.Federico G. Schwindt
- in urndis_attach() use the first interface descriptor that's different from the control interface as the data interface. from armani's colleague with some tweaks by me. kettenis@ sthen@ ok
2012-06-19Count should always start from zero.Paul Irofti
Doesn't matter if we need to relocate or not. Makes sense to jasper@
2012-06-19Set the appropiate return value on futex wait.Paul Irofti
Okay jasper@
2012-06-19Avoid eternal sleep.Paul Irofti
Sleep on the actual data address and not on the stack address of the pointer to the data. Okay jasper@
2012-06-19Add extra argument validation for the futex syscall.Paul Irofti
Okay jasper@
2012-06-19- remove outdated comment, we already do an equivalent of linux' access_ok()Jasper Lievisse Adriaanse
using copyin() anyway. ok pirofti@
2012-06-19Regenerate.Paul Irofti
2012-06-19Implement linux_sys_tgkill.Paul Irofti
Nobody calls linux_sys_tkill anymore so code for that is not needed. If this will become an issue in the future a simple wrapper will fix that. Okay jasper@.
2012-06-19Regenerate.Paul Irofti
2012-06-19Add dummies for the epoll and eventfd syscall families.Paul Irofti
Okay jasper@
2012-06-19Add socket type mask to filter out implementation specific flags.Paul Irofti
The newer glibc's, when creating a socket, add some higher bit flags to the type argument that are used for debug, statistics, profiling whatever. They are not useful and implementation specific. This is needed for DNS resolving, otherwise the nss library from glibc will always fail to do the right thing. Okay jasper@
2012-06-19Improve debug output and fix some style. No functional change.Paul Irofti
2012-06-19Change the pool_get() flags from WAITOK to NOWAIT.Paul Irofti
This avoids a potential lost-wakeup as pointed out by guenther@. Now the futex is locked all through the process and EAGAIN is returned on failure. Makes sense to guenther@.
2012-06-19Add more pathconf(2) variables from POSIX.Matthew Dempsky
From FreeBSD via Brad; ok millert
2012-06-18Do not try to get the description of an unexisting video format,Martin Pieuchot
from Gregor Best.
2012-06-17No longer restrict alloc_contiguous_pages() to memory in the low 4GB.Miod Vallat
2012-06-17Using the LLAddr register to store our curcpu() pointer on R10k SMP kernelsMiod Vallat
was a nice trick, but this register is only 32-bit wide and will be sign-extended, which requires all cpu_info structs to be allocated within 2GB physical - something which may not be possible on some configurations. This diff changes IP30.MP kernels to no longer use LLAddr to store curcpu, but use unused fields of the MPConf structure in low memory, indexed with the physical processor id, which can be obtained from the Heart PRID register.
2012-06-17Remove leftover loongson or sgi references.Miod Vallat
2012-06-16fix bad grammar in a commentMiod Vallat
2012-06-16compat_linux: Don't hold the lock while pool_get'ing with WAITOK.Paul Irofti
Okay jasper@.
2012-06-14Remove uvm_km_kmem_grow printf.Ariane van der Steldt
It's no longer required, code is stable. ok kettenis@
2012-06-14whitespace cleanupJasper Lievisse Adriaanse
ok ariane@
2012-06-14fix typo in commentJasper Lievisse Adriaanse
ok ariane@
2012-06-13Expose reaperproc.Ariane van der Steldt
I need this for my diffs. ok guenther@
2012-06-12Explicitly check whether a BAR is big enough for a particular port insteadMark Kettenis
of relying on bus_space_subregion(9) to fail. Fixes double console attachment seen by otto@
2012-06-11serial -> serial port; ok phessler@Otto Moerbeek
2012-06-10Do NOT make all check condition results report EIO. Only use EIOKenneth R Westerback
when b_error has not already been set to something more informative, e.g. EROFS. DO check the result of ffs_sbupdate() and error out of a mount() call when ffs_sbupdate() reports EROFS while attempting a rw mount. Letting RW mounts proceed regardless of EROFS led to crashes and usb problems for Oliver Seufer while using the RW/RO switches on some usb devices. Fix developed using devices kindly supplied by Oliver & Co. ok miod@
2012-06-10Allow a variable number of words for the Serializer/Deserializer programming.Mark Kettenis
Probably not enought to make the AR9380 chips to work, but at least the kernel shouldn't crash anymore when we see one. ok stsp@
2012-06-10Document the "machine comaddr" command.Mark Kettenis
2012-06-10Document the "machine comaddr" command. Remove the text that (incorrectly)Mark Kettenis
states that only com0 can be used as serial console.
2012-06-10Always allow serial console, even if the BIOS doesn't report the presence ofMark Kettenis
any serial ports. Otherwise the new code to use puc(4) ports as serial console isn't all that useful. ok sthen@, miod@
2012-06-10Remove leftovers from the "usb event" removal.Martin Pieuchot
ok jsg@, fgsch@
2012-06-09regenDavid Gwynne
2012-06-09fix the Broadcom BCM5720 id. add the IDT pcie bridge/switch used on theDavid Gwynne
myricom 10G-PCIE2-8B2-2S. ok kettenis@
2012-06-09we dont support the BCM5720. the macro wasnt even referring to the productsDavid Gwynne
actual id. ok kettenis@
2012-06-08RegeneratePaul Irofti
2012-06-08Remove the lack of gettid() implementation. Okay tedu@Paul Irofti
Looks right to jasper@ as well.
2012-06-08Missed a comment in the proc->process changePhilip Guenthe
2012-06-06Fix address-space randomization that was accidentally disabled inMatthew Dempsky
uvm_addr.c r1.3. ok deraadt, tedu
2012-06-06EVFILT_SIGNAL and EVFILT_PROC events need to track the process they'rePhilip Guenthe
attached to and not just the thread, which can go away. Problem observed by jsg@; ok jsg@ matthew@
2012-06-05As specified in PA RISC 2.0 errata, the 16-byte alignment restriction doesJoel Sing
not apply if the coherent operation cache control completer is specified for the ldcw/ldcd instruction. As a result, remove the alignment requirement and add the necessary completer. ok kettenis@
2012-06-05Implement actual mutexes for hppa64.Joel Sing
ok kettenis@
2012-06-05When error recovery fails, just fail the command. Attempting errorJonathan Matthew
recovery again results in a panic as the ccb used for error recovery is already in use. ok dlg@, tested by benno@
2012-06-04Add support for the HPET on this device.Mark Kettenis
From Matt Dainty. ok deraadt@
2012-06-04Fix serial port output.Marcus Glocker
OK weingart@
2012-06-04Correct the backwards compatibility code for console device configuration.Joel Sing
Fix tested by naddy@ ok kettenis@
2012-06-03Make sure uvm_map_extract() entesr mappings at an address that doesn'tMark Kettenis
introduce any virtual cache aliasing problems. Fixes a regression introduced by vmmap. ok ariane@, jsing@