summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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
2014-05-17...and it needs a guard against NULL as well.Miod Vallat
2014-05-17Fix previous commit by making sure we are not dereferencing uninitializedMiod Vallat
pointers.
2014-05-17In pmap_remove_page(), do not keep wired mappings; the callers want them gone.Miod Vallat
2014-05-17Remove "WARNING:" prefix from SYSFAIL and ACFAIL messages, so that, in caseMiod Vallat
of ACFAIL, what reaches the console is explicit enough.
2014-05-17Lower VUPS value for delay() to behave closer to the intent.Miod Vallat
This is temporary until vax grows code to compute a proper delay const at runtime, but will help a bit, especially on KA46 where cd(4) end up detected as sd(4) due to too short delays.
2014-05-17Print the rpb device type and unit values if the root device can't be foundMiod Vallat
by the kernel.
2014-05-17Change the return value of interrupt handler to 0 when nothing isKenji Aoyama
processed on this driver. "This is correct" miod@
2014-05-15Move from struct proc to process the reference-count-holding pointersPhilip Guenther
to the process's vmspace and filedescs. struct proc continues to keep copies of the pointers, copying them on fork, clearing them on exit, and (for vmspace) refreshing on exec. Also, make uvm_swapout_threads() thread aware, eliminating p_swtime in kernel. particular testing by ajacoutot@ and sebastia@
2014-05-12Fix format strings in debug code.Mark Kettenis
2014-05-11need syscall.h..Theo de Raadt
2014-05-11hide two printfs behind an ifdef DEBUG; spotted by miod@Jasper Lievisse Adriaanse
2014-05-11Move the increment of uvmexp.softs back to the caller of mi_ast():Philip Guenther
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
2014-05-11Pull in <sys/user.h> before <sys/syscall*.h>Philip Guenther
2014-05-10spello in comment and tweak DUMP_BOOT_DESC a tadJasper Lievisse Adriaanse
2014-05-10various format string fixes and remove -Wno-format from octeonJasper Lievisse Adriaanse
feedback/ok miod@
2014-05-10sigh, another case of user.h before syscall_mi.hTheo de Raadt
2014-05-10Remove -Wno-format.Mark Kettenis
2014-05-10Disable speedstep instead of panicing if the high and low speeds are the same.Philip Guenther
Problem noted by Benjamin Baier (programmer (at) netzbasis.de) improvements and ok kettenis@
2014-05-10We print time_t by casting to "long long" even in the kernel.Mark Kettenis
ok deraadt@
2014-05-10bring things syscall_mi.h needs into scope earlierTheo de Raadt
2014-05-10bring things syscall_mi.h needs into scope earlierTheo de Raadt
ok guenther
2014-05-10Fix formwat string. Cast pointer to long and print it using %lx since %pMark Kettenis
prefixes the address with 0x which we want to avoid here.
2014-05-10A few more straightforward format string fixes.Mark Kettenis
2014-05-10Format string fixes for bus_addr_t and bus_size_t, which are u_long everywhere.Mark Kettenis