summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-09-29Back out previous, it appears to be broken.Joshua Elsasser
2010-09-29When reading MXCSR from userland sigcontext, mask out invalid bits.Joshua Elsasser
This prevents a protection fault if a userland signal handler scribbles all over it's struct sigcontext Help from and ok guenther@ kettenis@
2010-09-29It's never too late to make things at least compile.Miod Vallat
2010-09-28Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,Miod Vallat
to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
2010-09-28malloc() without a WAIT flagTheo de Raadt
2010-09-28Make this compile again.Miod Vallat
2010-09-28typoMiod Vallat
2010-09-28Correct the handling of GS.base when iretq faults: the fault happensPhilip Guenthe
with CPL == 0 but the user's GS.base, so the normal INTRENTRY handling won't work. Contrawise, the asm that trap() redirects us to when that happens (resume_iret) sees a trapframe showing CPL==3 but it's run with the kernel's GS.base, so INTRENTRY won't work there either. asm style fixes drahn@ and mikeb@ ok kettenis@
2010-09-27must use M_WAITOK here; run into by landryTheo de Raadt
2010-09-27add support for tracing process stacks in ddb (trace /p).Mike Belopuhov
due to the way arguments are parsed, pid has to be specified in the hexadecimal notation. tested by me and sthen, ok sthen kettenis
2010-09-26No need for ums either; from BradMiod Vallat
2010-09-26No need for pms on the installation media; from BradMiod Vallat
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-24- let zaurus compile again after utwitch enableJasper Lievisse Adriaanse
2010-09-24Add stricter asserts to DIAGNOSTIC kernels to help catch mutex andMatthew Dempsky
rwlock misuse. In particular, this commit makes the following changes: 1. i386 and amd64 now count the number of active mutexes so that assertwaitok(9) can detect attempts to sleep while holding a mutex. 2. i386 and amd64 check that we actually hold mutexes when passed to mtx_leave(). 3. Calls to rw_exit*() now call rw_assert_{rd,wr}lock() as appropriate. ok krw@, oga@; "sounds good to me" deraadt@; assembly bits double checked by pirofti@
2010-09-24Fix bus space mapping bugs for GPIO's and MFGPT's and while at it add properPaul Irofti
defines for the constants used while mapping. Okay miod@, deraadt@.
2010-09-24fix typo in utwitchDavid Gwynne
2010-09-24enable utwitch(4) for SGI machines too.Yojiro Uo
ok deraadt@, miod@
2010-09-23enable utwitch(4) (formely uyurex(4)) by defaultYojiro Uo
ok deraadt@
2010-09-23Move clock attachment later in the game. This is needed for cpu scaling.Paul Irofti
Okay miod@.
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventJoel Sing
automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
2010-09-23Add pppx(4) to the cdevs of the remaining archs.Claudio Jeker
OK dlg@
2010-09-22Add a new interface pppx(4) -- the ppp multiplexer to be used with npppdClaudio Jeker
and pipex. pppx(4) creates an interface whenever a session is created so that altq and pf can work on these. Started by dlg@ debugged and made usable by myself OK dlg@ yasuoka@ deraadt@
2010-09-22Revert previous and let drivers register counterless interrupts;Miod Vallat
tc_intr_disestablish() prototype is changed to carry information whether the counter needs to be detached or not. This does not matter much since no driver ever calls tc_intr_disestablish().
2010-09-22Switch to unconditionally attaching evcounts on TurboChannelMatthew Dempsky
interrupts, since inspecting the code, they seem to always attach anyway. This fixes compiler fallout from my evcount simplification. build error reported by naddy@; "seems sensible" deraadt@
2010-09-22Add DIOCGPDINFO to drivers that were lacking it. Where thereKenneth R Westerback
is no easily available physical information outside of the stored disklabel just make it a synonym for DIOCGDINFO. Commit on the theory it is unlikely to harm, and fallout can be addressed in the mass re-compile that will follow j2k10. Should allow auto-allocation of disks to work with all devices. ok deraadt@
2010-09-22Fix ramdisks, from Vladimir Kirillov. Thanks!Paul Irofti
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
2010-09-21Better not panic in MipsEmulateBranch() if the instruction is an unspecifiedMiod Vallat
OP_BCOND subfunction.
2010-09-21Replace the old floating point completion code with a C interface to theMiod Vallat
MI softfloat code, implementing all MIPS IV specified floating point operations. Tested on R5000, R10000, R14000 and Loongson2F.
2010-09-21save & restore the watchdog configuration when doing suspend/resumeTheo de Raadt
ok pirofti
2010-09-21Watchdog suspend/resume logic.Paul Irofti
Okay miod@, deraadt@.
2010-09-21Remove bootinfo.c which has license issue. ok deraadt@Takuya ASADA
2010-09-21Fix incorrect comment on comreg.h. ok deraadt@Takuya ASADA
2010-09-21gpio at glxpcib was forgotten; tested by piroftiTheo de Raadt
2010-09-21Make splassert(IPL_NONE) work on amd64 the same as it does on i386.Matthew Dempsky
ok oga@ (a while back)
2010-09-20Make md_printins() get the printf-like function as an extra parameter, andMiod Vallat
make it visible so that md parts of the kernel can use it for debug messages.
2010-09-20cache operations for octeon. ok miod@Takuya ASADA
2010-09-20Stop doing shutdown hooks in network drivers where possible. We alreadyTheo de Raadt
take all interfaces down, via their xxstop routines. Claudio and I have verified that none of the shutdown hooks do much extra beyond what xxstop was already doing; it is largely a pile of junk. ok claudio, some early comments by sthen; also read by matthew, jsg
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-09-20Initial revisionTakuya ASADA
2010-09-20Initial revisionTakuya ASADA
2010-09-20Write the start of an activate function. QUIESCE should wait for theTheo de Raadt
current crypto operation to finish but doesn't do that yet. The suspend and resume operations assume that SB_GLD_MSR_CTRL gets trashed ok pirofti
2010-09-20Need an activate function to get to sub-devices. Write it by hand sinceTheo de Raadt
we expect some specific register restoration will be needed here later too. ok pirofti
2010-09-20Must travese deeper for DVACT_QUIESCE; ok miodTheo de Raadt
2010-09-19Overhaul ddb disassembler to recognize all MIPS IV instructions, as well asMiod Vallat
some mips64r2 instructions. Various bugfixes all over as well (conditional trap instructions do not have a delay slot, for instance).
2010-09-17Recognize MIPS IV extra FPU condition codes in MipsEmulateBranch().Miod Vallat
2010-09-17Protect a few more defines with _KERNEL checks, and also allow some of themMiod Vallat
to be visible if _STANDALONE. This will eventually be used by the upcoming new-and-improved loongson bootblocks (in the works).
2010-09-17FPU control/status register defines, and upcoming userland functionMiod Vallat
prototypes to allow control of the FPU c/sr FS field.