summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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@
2014-07-01Replace the assembly 88100 FPU imprecise exception code (mostly triggered byMiod Vallat
denormal results) with C code using softfloat to correctly round the inexact results in the best possible way according to the current rounding mode. No functional change intended, and this assembly code was surprisingly almost non-buggy, as opposed to the precise exception code replaced a few weeks ago; still an improvement as this replaces 900 lines of arcane assembly with 90 lines of understandable C code.
2014-06-29Don't ridiculously assume that sysctl.h will (through a set of extremelyTheo de Raadt
unfortunate circumstances) pull machine/cpufunc.h
2014-06-27Standardize xfer byte counts to ssize_t rather than a mix of size_t and intMiod Vallat
(we need to make them signed to spot controller overruns), and fix format strings accordingly. While there, make sure every runtime printf is prefixed by either the complete target information, if available, or at least the driver name with the proper instance number - supported systems with > 1 wdsc are quite common.
2014-06-27Update list of .S depencies over assym.h.Miod Vallat
2014-06-22PROCFS has been broken for months without complaints, so stop building itPhilip Guenther
suggested by sthen@
2014-06-20Fix a wrong comparison in the interrupt handler.Raphael Graf
ok syl@
2014-06-19Implement the membar(9) API for powerpc.Mark Kettenis
ok miod@, dlg@
2014-06-18fix format string if DEBUGMiod Vallat
2014-06-18Add missing synchronization instructions.Mark Kettenis
ok mpi@
2014-06-18Update comment; there seems to be no PC-9801 extension board slot onKenji Aoyama
'original' LUNA-88K.
2014-06-17Implement the membar(9) API for hppa.Mark Kettenis
ok miod@, dlg@, guenther@
2014-06-17We need to be more aggressive flushing L2 entries on RM7000 systems.Miod Vallat
2014-06-17Add membars to guarantee mtx_oldipl is written after locking andPhilip Guenther
read before unlocking. Believed to fix some spl problems on MP that have had landry and tobaisu seeing red. suggestion to use membar API from matthew@ ok matthew@ kettenis@
2014-06-17The io clock on Octeon II (CN6xxx) runs at a different rate to the cpu clock.Jonathan Matthew
Program the uarts based on the io clock rate on these platforms. ok jasper@ pirofti@ yasuoka@
2014-06-17Fix format string under MP_LOCKDEBUGTobias Ulmer
2014-06-16Enable PCI power management on Lemote.Paul Irofti
Remaining battery test results on Lemote after 30m in suspend: pci_dopm = 0: 82%, 68min pci_dopm = 1: 86%, 81min Suggested by deraadt@ Okay miod@, deraadt@
2014-06-15Fix a few format string bugs with -DDEBUGStefan Fritsch
2014-06-14Preallocate sgmap extent regions for tsp, cia and mcpcia dma maps, which fallJonathan Matthew
back to sgmap if the direct mapping fails. ok miod@
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@