summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-07-11The signal to tell init to power-off the system is SIGUSR2, not USR1Philip Guenther
Inconsistency noted by blambert@, ok deraadt@
2014-07-10panic() doesn't need a newlineJasper Lievisse Adriaanse
ok pirofti@
2014-07-10Set 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-07-10boot(9): More comment removal about cold/savectx() missed in previousMasao Uebayashi
2014-07-10boot(9): Remove comments about RB_*, "cold", and savectx()Masao Uebayashi
Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
2014-07-10KNF.Masao Uebayashi
2014-07-10remove most of the boolean_t infection outside uvm/ddb/pmap; ok jsgTheo de Raadt
2014-07-10boot(): Remove comments about RB_TIMEBAD to reduce diffsMasao Uebayashi
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
2014-07-10Add missing dmesg colon after probe information.Paul Irofti
Noticed by deraadt@, thanks!
2014-07-10fix some errors in lockdebug code. not enabled by default.Mike Larkin
ok dlg@
2014-07-10boot(): Unify declarationsMasao Uebayashi
OK deraadt@
2014-07-10Add bus and root hub routines to prevent panic at attach.Paul Irofti
Root hub routines inspired by xhci(4) with help from mpi@. dmesg progress: octhci0 at iobus0 irq 56 core version 2 pass 3.5 usb0 at octhci0: USB revision 2.0 uhub0 at usb0 " octHCI root hub" rev 2.00/1.00 addr 1 uhub0: cannot open interrupt pipe usb0: root device is not a hub
2014-07-10Force iobus0 for octhci and maintain spacing style.Paul Irofti
2014-07-10Clear CPUF_PARK flag to avoid re-parking on resume.Mike Larkin
2014-07-10Align octhci(4) with the other HC drivers and add it as a commented entryMartin Pieuchot
to GENERIC. ok pirofti@
2014-07-09Add work-in-progress octeon USB host controller support.Paul Irofti
Not enabled for now. It's easier for me to work on it in-tree. Discussed with and okay miod@
2014-07-09Add ffs routine needed for upcoming octhci interrupt routine.Paul Irofti
Okay miod@
2014-07-09CPUF_PARK check was placed improperly in the previous commit.Mike Larkin
2014-07-09Don't use the suspending kernel's VA mapping for the piglet. It's farMike Larkin
easier and much less error-prone to just identity map it in the resuming kernel as we have more control over the VA space layout there (otherwise we are at the mercy of the suspending kernel's placement of the piglet VA). This diff also increases the size of the piglet to 4 chunks, to avoid an overwrite issue seen in m2k14 where the start of the kernel text was overwritten with a bounced chunk before unpack.
2014-07-09Fixes a resume time page table issue on amd64 if the piglet was locatedMike Larkin
above 1GB physical (caused by using an incorrect page size mask) Also removes some unneeded low memory mappings on both amd64 and i386 (this is a cosmetic fix but makes things easier to debug).
2014-07-09Cleanup the chunk placement routine by removing the conflict resolver.Mike Larkin
Chunks are now sorted by ascending PA and all chunks are bounced before unpack. This fixes an issue where the trampoline chunks were being placed at the end of the unpack ordering, causing overwrite during unpack.
2014-07-09Do the way long overdue renaming of register names from o32 to n64 ABI.Miod Vallat
In other words, ta0-ta3 are now a4-a7 instead of t0-t3; and the former t4-t7 are now t0-t3.
2014-07-09Kill unused shutdown hook pointers.Martin Pieuchot
ok miod@, deraadt@, tedu@
2014-07-09Fixes a hibernate issue wherein we locked the kernel lock while hatchingMike Larkin
but then parked ourselves in real mode without completing acquisition of said lock. Also removes the park routine from i386 since we don't need it (the APs are already parked at the time we start unpack). discussed with and ok kettenis@, also ok deraadt@
2014-07-09bpf code surgery / shuffling / simplification.Henning Brauer
the various bpf_mtap_* are very similiar, they differ in what (and to some extent how) they prepend something, and what copy function they pass to bpf_catchpacket. use an internal _bpf_mtap as "backend" for bpf_mtap and friends. extend bpf_mtap_hdr so that it covers all common cases: if dlen is 0, nothing gets prepended. copy function can be given, if NULL the default bpf_mcopy is used. adjust the existing bpf_mtap_hdr users to pass a NULL ptr for the copy fn. re-implement bpf_mtap_af as simple wrapper for bpf_mtap_hdr. re-implement bpf_mtap_ether using bpf_map_hdr re-implement bpf_mtap_pflog as trivial bpf_mtap_hdr wrapper ok bluhm benno
2014-07-09need uvm/uvm_extern.h since no longer supplied below user.hTheo de Raadt
2014-07-09obvious need for systm.h, which no longer comes in from something user.h ↵Theo de Raadt
includes
2014-07-09if you use sysctl, you need sysctl.hTheo de Raadt
2014-07-09pull in uvm/uvm_extern.h (before and) and instead pmap.h, and do not assumeTheo de Raadt
that user.h's tentacles fetched it even earlier.
2014-07-09Fix boot -d. refreshcreds() should be called when trapping from userspace,Philip Guenther
but I flipped the test on i386/amd64, thus breaking kernel traps before enough proc0 bits were set up. In theory, this could have resulted in a NFS read for a page fault being done with a process's old credentials. pointed out by Patrick Wildt of bitrig
2014-07-08Repair compilability after the recent uvmexp changes, especially forMiod Vallat
not compile-time-known page size platforms.
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
don't need to be married. ok guenther miod beck jsing kettenis
2014-07-08Typo in previous assym.h dependency changesMiod Vallat
2014-07-08This is bootblock code. Don't pull in uvm header files to deal withTheo de Raadt
page rounding! Disgusting. Instead, define local copies of those macros.
2014-07-08A few missing sys/systm.h includes. Soon the universes dragged in viaTheo de Raadt
uvm_extern.h, uvm_param.h, and sysctl.h will no longer gaurantee that _KERNEL code gets it.
2014-07-08cut things that relied on mclgeti for rx ring accounting/restriction overDavid Gwynne
to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
2014-07-08the way vnet works means mclgeti cant do its job. remove hte ifpDavid Gwynne
argument to MCLGETI to make that clear.
2014-07-07Do the 64-bit argument swap dance, for the syscalls which require it,Miod Vallat
unconditionaly instead of only doing it if invoked indirectly through syscall or __syscall. While there, tweak stack argument fetching to only perform one large copyin() call, rather than a loop of small ones. ok kettenis@
2014-07-06Build with -Wall. Make sure main() returns zero.Miod Vallat
(found the hard way by building with -fstack-shuffle)
2014-07-05Matthias Pfaller rescinded clauses three and four of his licenseJonathan Gray
http://mail-index.netbsd.org/source-changes/2009/10/18/msg002090.html
2014-07-04Create the ioport_ex and iomem_ex extents after we've set up the gdt gatesMark Kettenis
such that curcpu() works. The extent code creates pools, and if we want to add any sort of locking to the pool code we need that working. Found out the hard way by guenther@. ok dlg@, guenther@
2014-07-03Add identcpu detection for 1-GByte pagesMatthew Dempsky
ok mlarkin
2014-07-03Include <sys/mutex.h> explicitely here.Matthieu Herrb
It will no longer be pulled by uvm_extern.h in the short future. ok jsg@
2014-07-02Be more careful when recreating single-precision (float) argument to serviceMiod Vallat
precise exceptions, as the actual data the FPU gives us is a 35-bit number, with the exponent sign-extended to the double-precision exponent width. Make sure we shrink it and fetch the remaining three low bits of mantissa from the LS registers.
2014-07-02In fpu_compare(), set the `not equal' bit when the result of the comparisonMiod Vallat
is `not comparable'. gcc relies upon `not equal' being set when comparing numbers to infinities.
2014-07-02Make sure the kernel lock is held when invoking process_domem(); fixesMiod Vallat
ptrace operation on MP kernels.
2014-07-02On IP28, ignore (as in, do not report) GIO bus errors where the address isn'tMiod Vallat
actually part of the GIO address range; these obviously come from speculative R10000 execution and are completely harmless (except for the need to acknowledge them, which we have to do anyway).
2014-07-02Add support for adjusting the receive filter to allow for promiscuousBrad Smith
mode and reception of multicast traffic. ok matthieu@ "looks good to me" rapha@
2014-07-02Remove unused mainbus intr hook abstraction.Tobias Ulmer
Theo approves, ok mpi@
2014-07-02Remove unused system_type and friends. Remnants from universal powerpc supportTobias Ulmer
ok mpi@ deraadt@