summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-06-03Better comment for `faulty address'.Kenji Aoyama
2014-06-02Apply the ``make sure sigcontext does not overlap pending DAE addresses''Miod Vallat
logic in the dedicated signal stack case, too. Also, every time the sigcontext position is recomputed by the above logic, recheck the DAE addresses from the beginning, in case a formerly avoided address now risks being overwritten.
2014-06-02Bump DFLSSIZ to 2MB to match most of the other platforms.Brad Smith
ok miod@
2014-06-02Simply use ifa_ifwithaddr() to check if the binding address is on theMartin Pieuchot
system. This function checks for unicast and broadcast addresses, so there is no need to do two lookups instead of one. Inputs & ok jca@, ok mikeb@
2014-06-01Take subsequent stack alignment into account in local_stack_frame() whenMiod Vallat
making sure the sigcontext will not overlap pending DAE accesses. Fixes sporadic sys/kern/signal/earlysig regress failure.
2014-06-01Remove real mode VGA repost option. It was used by nobody, and even if itMike Larkin
were to be enabled, it had a bug that prevented it from working anyway. ok deraadt@, kettenis@
2014-05-31Use calloc to make sure the correct size is zeroed; Benjamin BaierMiod Vallat
2014-05-31Reduce MAXSSIZ to 32MB to match all other platforms; noticed by tobiasu@Miod Vallat
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-31Unbreak RTM_CHANGE. Unlike RTM_LOCK or RTM_GET it is OK to pass in aClaudio Jeker
new gateway for RTM_CHANGE if the route is not a multipath route. Fixes issues found by benno@, OK benno@
2014-05-31Address several problems in signal delivery on 88100 processors:Miod Vallat
- when building the sigcontext, rewind the pipeline for recoverable exceptions, so that sigreturn actually has a chance to cause the interrupted instruction to be run again. - when returning with sigreturn, and the sigcontext contains valid DAE information, the DAE need to be emulated before returning, for the processor will not reissue them. - finally, when the sigframe is allocated on the current process' stack, be careful not to stomp upon addresses referenced by the DAE information, for this would defeat the previous point. All these changes only affect 88100 processors only. 88110 operation is unchanged. While there, do not copyout an empty siginfo struct if the signal handler does not expect any. Hair-pulling evil testcase provided by aoyama@, based upon one of devel/libsigsegv configure tests (which would spin on 88100 and run happily on 88110).
2014-05-31In regdump(), print DAE registers when they are valid, regardless of theMiod Vallat
exception type.
2014-05-31Introduce m88100_rewind_insn() to rewind the execution pipeline oneMiod Vallat
instruction, rather than gazillions of inline variants. This also makes the situations where we clear specific bits in the fip or nip registers more visible. No functional change.
2014-05-31Remove some unused code that we added at the 2013 Toronto hackathon butMike Larkin
don't need anymore.
2014-05-31Fix a format specifier in a debug printf.Mike Larkin
Noticed by Josh Grosse.
2014-05-30Remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok claudio@
2014-05-30SBus glue for qlw(4) for sparc. Untested.Mark Kettenis
2014-05-30SBus glue for qlw(4) for sparc. Untested.Mark Kettenis
2014-05-30Eliminate some duplicated "mfctl cr29, rN" instructions.Mark Kettenis
ok jsing@
2014-05-30Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-05-30Remove unused fields from the pipes.Martin Pieuchot
2014-05-30explicit_bzero for clearing stack variables.Ted Unangst
2014-05-29Use the same convention for mixer control names as azalia.Alexandre Ratchov
2014-05-29fsck should use the same values in checking as newfs does in creatingKenneth R Westerback
a filesystem. fs_nspf and its derivitives like fs_spc are DEV_BSIZE values, not actual hardware disk sector values. Adjust initializations accordingly. Tweak header and man page comments to make the DEV_BSIZE'ness more obvious for future spelunkers. No-op for DEV_BSIZE (a.k.a. 512-byte) sector devices but should help checking filesystems on, e.g., 4k-byte sector devices. ok jmc@ on the man page tweaks.
2014-05-29no more gcc2.Daniel Dickman
ok miod@
2014-05-29Read MAXPHYS bytes at a time in the hibernate image read, instead ofMike Larkin
PAGE_SIZE bytes. Completes the MAXPHYS optimizations in the read path. with input from guenther@ who suggested a version that was a little easier to understand. Tested on i386 and amd64.
2014-05-29When vmcmd_map_readvn() maps in the page it reads into, it forcesPhilip Guenther
it to be writable but otherwise uses the correct final permissions. Ergo, it only needs to call uvm_map_protect() if the requested permissions didn't include UVM_PROT_WRITE. ok beck@
2014-05-28Apart from the early exploration done to find a console keyboard duringMartin Pieuchot
the boot process, USB devices must be attached or detached from the usb task thread in order to avoid races with periodical explorations issued by uhub(4) interrupts. Respect this rule when detaching root hubs during a suspend/resume cycle and avoid some hangs due to the aforementioned race. Tested by Mattieu Baptiste, thanks!
2014-05-27Fix 'mount -ur' for msdosfsStefan Fritsch
* fix bug preventing sync after more than one rw -> ro cycle. * sync data and not only metadata ok guenther@
2014-05-27Big refactoring of the radix code (mainly rn_addroute but also partClaudio Jeker
of rn_delete was changed). The mpath code gets a much better rn_mpath_next() function that allows looping through the dupedkey list based on prio, any or only active routes. This solves the issues seen with failed deletes of down routes. Commit this now so that it gets tested. Both sthen@ and blambert@ agree.
2014-05-27Zap a bunch of trailing whitespace.Kenneth R Westerback
2014-05-27We're never going to detach agp(4), so remove the #ifdef'ed out code like weMark Kettenis
already did for intagp(4).
2014-05-27Fix ia64 cross-gcc target.Tobias Ulmer
opensslconf.h is just a dummy, we're lightyears away from working userspace. ok deraadt@
2014-05-27Reserve the highest route priority for kernel-managed routes and preventMartin Pieuchot
userland from playing with the local and broadcast flags. ok claudio@
2014-05-26Replace some magic constants with appropriate defines.Mark Kettenis
ok krw@, deraadt@
2014-05-26Do not change the state of the carry bit in the psr when returning withMiod Vallat
ERESTART or EJUSTRETURN, for we're not supposed to. (Actually, setting the carry bit upon syscall failure doesn't make much sense on m88k, since this is not how the syscall stubs check for failure)
2014-05-26Document that this reference counter is not generic. It indicates howMartin Pieuchot
many route entries are pointing to this address.
2014-05-26Matching USB devices per device IDs is not a good idea, especially ifMartin Pieuchot
the device has multiple interfaces and/or report IDs. Make sure utpms(4) only matches the mouse interface of the HID device embedded in Powerbooks and do not rely on the alphabetical order to have a working ukbd(4) on such machines. Problem reported by daniel@
2014-05-25Handle threaded processes correctly when processing kerninfo status requestsPhilip Guenther
(aka ^T), summing CPU and check runnable/running status of all threads. ok deraadt@
2014-05-25In access(), use the real UID/GID for the path search too.Philip Guenther
ok matthew@
2014-05-25fix format mistakes when AZALIA_DEBUG is definedAlexandre Ratchov
2014-05-25Turn on blinky things by default, very useful hereTheo de Raadt
2014-05-25The default case in uhci_deactivate() was missing. Because of that,Martin Pieuchot
DVACT_QUIESCE was not passed to usb(4) and a new uhub(4) device was reattached at every resume. Problem reported by mlarkin@
2014-05-24Provide bus_space_mmap()Miod Vallat
2014-05-24Barriers for mips64Miod Vallat
2014-05-24Why didn't I use ps_vmspace when I scribbled all over pmap_rmproc()?Philip Guenther
ok miod@
2009-12-11By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2014-05-24Support for newer run(4) hardware ported from FreeBSD's run(4) driver.Stefan Sperling
Committing over MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R). Tested by myself, matthieu@, juanfra@ Diff glanced over by kettenis@
2014-05-24regenStefan Sperling
2014-05-24Add device IDs for newer run(4) devices. Obtained from FreeBSD.Stefan Sperling