summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-06-13Fix broken logic in sgec_rxintr() poorly duplicating some of ether_input()Miod Vallat
checks, causing the rx ring pointer to stall as soon as an irrelevant frame is received when the intergace is in bpf+promiscuous or `all multicast' mode. Problem spotted and tracked down to the use of bpf by sebastia@. Hair pulling by me.
2014-06-13Fix ptrace() hanging hppa MP systemsTobias Ulmer
Fiddling with uvm, registers and breakpoints requires taking the kernel lock Problem spotted by tedu@ ok kettenis@ deraadt@ miod@
2014-06-12Grab the kernel lock before cleaning up single-step breakpoints. ShouldMark Kettenis
prevent mips64 from hitting the same problem as found by tobiasu@ on hppa. ok miod@
2014-06-11Don't map phys pages < 64KB in the resume page table. We stopped doing thisMike Larkin
in the kernel a few months back and there's no reason these pages need to be mapped during unpack either.
2014-06-10add ppb to the configs as suggested by kettenis@Jasper Lievisse Adriaanse
tested by jj@
2014-06-09Replace the unmaintainable assembler code responsible for 88100 precise FPUMiod Vallat
fault handling with a C wrapper around the softfloat code, as already done for 88110 kernels. As a bonus, attempting to read or write FPU control registers but fcr62 and fcr63 in userland will now correctly signal an illegal instruction, instead of leaving the destination register unchanged and pretending nothing bad happened. Be sure to rm m88100_fp.d in your kernel compile directory after updating your tree.
2014-06-09Remove redundant regdump() output.Miod Vallat
2014-06-09Remove {amd64,i386}/stand/installboot - we now use usr.sbin/installbootJoel Sing
and these have been unhooked from the build for a while now.
2014-06-09Doh, traps 128 and 129 need to point to sigsys, not unknown_vector.Miod Vallat
2014-06-09More format string fixes (in 88110 code)Miod Vallat
2014-06-09Split the 88100 floating point support code in two files, one for the preciseMiod Vallat
exceptions, one for the imprecise exceptions. No functional change.
2014-06-08check both rsdp checksums in the case of rsdp revision >= 2.Daniel Dickman
ok mlarkin@
2014-06-08Remove an incorrect bzero() that was zeroing theJonathan Gray
size of the pointer instead of the size of the buffer. Removal suggested by deraadt@ as no code uses the buffer after the zeroing.
2014-06-08instead of reading past the end of the sun_fstypes arrayJonathan Gray
assume FS_BSDFFS for partitions 8-15 in extended sun labels as suggested by deraadt@
2014-06-08Stop accepting system calls on trap vectors 128 and 129. Userland has notMiod Vallat
been doing this since almost 1.5 years and there has been the 64-bit time_t bump in between, so no old binary should remain.
2014-06-07Modify to ANSI-style function declarations. No binary change.Kenji Aoyama
2014-06-05Remove conditional pipeline rewind on 88100, introduced in 1.19 - this seemsMiod Vallat
to create subtle problems, and removing it does not prevent existing signal delivery tests from having the correct behaviour. And this is likely redundant with DAE processing in sigreturn. We should probably rewind if XIP_V is not set, but does this ever happen in real life? To be investigated on a rainy day. This seems to fix spurious signals encountered building libstdc++ and perl.
2014-06-03Fix sentinel style.Kenji Aoyama
ok miod@
2014-06-03Use a proper compiler barrier; just having the inline asm for the "sync"Mark Kettenis
instruction depend on ci->ci_cpl makes the compiler generate strange code and might not be enough to stop the compiler moving instructions around. ok jsing@
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-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-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-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-27Fix ia64 cross-gcc target.Tobias Ulmer
opensslconf.h is just a dummy, we're lightyears away from working userspace. ok deraadt@
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-25Turn on blinky things by default, very useful hereTheo de Raadt
2014-05-24Provide bus_space_mmap()Miod 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-23Free the est_fqlist allocations if we end up not using it.Philip Guenther
suggested by Benjamin Baier (programmer (at) netzbasis.de) ok and comment suggestion kettenis@
2014-05-22RegenMiod Vallat
2014-05-22Yet another evil awk script (not perl, I'm not in LibreSSL mode at the moment)Miod Vallat
to convert the PS/2 keyboard layouts to SGI serial keyboard layouts. Only the subset of layouts known to have existed (as listed in IRIX's <sys/kbd.h> header) get converted, and specific flavours (iopener, dec LK) are ignored as well. `nodead' flavours, when existing, are preserved.
2014-05-22Extend the keyboard communication routines to be able to work in polling mode;Miod Vallat
use this to read the DIP switches from the keyboard at attach time. Change the state machine to allow for a `DIP switch prefix' scan code to be received while we are not attempting to read the DIP switches, for the `international' key (not found in regular us layouts, documented is the `GERlessthan' key in sgi's keyboard(7) manual page) will return the aforementioned scancode, instead of the one documented in the manual. Thanks to sebastia@ for lending me his german layout keyboard.
2014-05-20remove irrelevant, outdated, and misleading sentence suggesting thatAlexander Hall
you need to set up a local mirror for the install sets brought to attention by pascal@ ok krw@
2014-05-19Format string fixes and removal of -Wno-format for sgi. Based upon anMiod Vallat
initial diff from jasper@
2014-05-19There is no need to remember which usb(4) device is the child of an USBMartin Pieuchot
host controller because autoconf(9) already does it. Breakage reported by todd@
2014-05-17One more mistake introduced in 1.65Miod Vallat