summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-05-02Cope with userland mappings of unmanaged pages (i.e. device memory beingMiod Vallat
mmap'ed), by properly making these mappings uncached, and correctly accounting their removal to not get stuck with leftover pte pages. While there, change a can't happen infinite loop in pmap_destroy() into a KASSERT. feedback and ok kettenis@
2011-05-01Fix counting of interrupts for devices that attach to elroy(4). SharedMark Kettenis
interrupts would be counted double, once for the interrupting device and once for the device at the head of the chain. The handlers would run properly though. Avoid this by giving each device its own interrupt counter instead of using the counter provided by the generic interrupt handling code for the head of the chain.
2011-05-01Be sure to cast physmem to a 64-bit type before passing it to ptoa().Miod Vallat
2011-04-30Use cons_decl() instead of rolling our own cn* prototypesMiod Vallat
2011-04-30Preliminary plumbing code for i386 hibernate (suspend-to-disk).Mike Larkin
This code is not yet called as there are still some important parts not completed. ok deraadt@, kettenis@ "looks reasonable"
2011-04-30Plug holes in cdevsw[] to make vscsi, diskmap and pppx entries match theMiod Vallat
numbers in comments and the MAKEDEV majors.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This will enable uvm_map to behave intelligently when allocating. Prodded by deraadt to commit this.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This enables future uvm_map allocator to behave intelligently.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This will enable future uvm_map code to make intelligent decisions during allocation.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This will enable future uvm_map to make intelligent allocation decisions.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This will enable intelligent decisions with future uvm_map.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This enables future uvm_map code to make intelligent decisions. Code is not called at the moment.
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
Enables future uvm_map code to make intelligent decisions during allocation. No functional change.
2011-04-28Expose pmap prefer parameters.Ariane van der Steldt
Enables future uvm_map code to make intelligent decisions. No functional change.
2011-04-28- enable fenvMartynas Venckus
- add nearbyint, nearbyintf and nearbyintl implemented using fenv
2011-04-28fenv improvements and cleanupsMartynas Venckus
2011-04-27Do not explicitly enable interrupts before returning from interrupt.Alexander Bluhm
This fixes possible stack overflows under high interrupt load. Note that this allows traps on kernel code to run with interrupts blocked. From Christian Ehrhardt ok guenther@ deraadt@
2011-04-27support rooting off multipath disks.David Gwynne
if you boot from a disk that ends up behind mpath(4) on sparc64, it wont be able to resolve it to the actual disk device since a path driver (eg sym(4)) sits where ofw tells us a disk is. this diff allows the bootpath code to match on path drivers, and then asks mpath to swap the path for the disk device. ok kettenis@
2011-04-26MMU address space holes are at a fixed position (ofcourse).Ariane van der Steldt
Therefore set UVM_FLAG_FIXED and enforce this. ok oga@
2011-04-26fenv for mips64Martynas Venckus
2011-04-26Make amd64/i386 boot(8) pass the DUID of the selected boot device to theJoel Sing
kernel so that it can use it to identify the root disk. This will be needed in order to correctly boot from a softraid volume. ok deraadt@ marco@ krw@
2011-04-25FPU emulation option addedTakuya ASADA
2011-04-25fenv for sparc; mostly cloned from sparc64Martynas Venckus
2011-04-25garbage collect biomask printf; ok deraadt kettenisMike Belopuhov
2011-04-25Move .rodata 512KB further once more.Mark Kettenis
ok deraadt@
2011-04-25fenv for powerpcMartynas Venckus
2011-04-25Try to match immediate constants in movl instructions against kernel symbols,Miod Vallat
and display the symbol name if there is an exact match. The optimizer likes to store addresses into `d' registers, then copy them to `a' registers and invoke the function indirectly; previously we'd only get symbol lookup for `lea' instructions (when storing to an `a' register).
2011-04-25Callers of scsi_iopool_init() ought to set up the pool member in structMiod Vallat
scsi_link accordingly, for bad things will happen without (and this was a real pita to debug).
2011-04-24Don't leak fd's in sr_installboot(). From cppcheck via Amit Kulkarni.Kenneth R Westerback
2011-04-24Denormalization exception isn't supported on sh4, and setting bit 7Martynas Venckus
would enable inexact trap instead of setting the sticky bit. OK miod@.
2011-04-24fenv for shMartynas Venckus
2011-04-24fenv for i386, and sparc64; from matthew@Martynas Venckus
not reviewed yet, but it's better to track changes in cvs
2011-04-24fenv for armMartynas Venckus
2011-04-23Implement C99 floating-point environment for Alpha.Martynas Venckus
Delivering FPE with non-masked exceptions doesn't work on Alpha; I suspect there's a bug in the kernel trap handler. FE_INEXACT is intentionally left out of FE_ALL_EXCEPT; since the inexact exception is not being maintained. Otherwise it will lead to the bogus results.
2011-04-23Stop calling shared interrupt handlers as soon as one of them return 1Mark Kettenis
(positive interrupt was for me), like we do on other architectures. This is done here, at the elroy(4) driver level, since this is where shared PCI interrupts are handled. We could do something similar for dino(4) but this optimization is probably not very relevant there. ok deraadt@
2011-04-23Don't leave the kernel code/rodata writeable for DDB. Make ddb enableTheo de Raadt
writes in the pte momentarily. Modified the code stolen from amd64. ok miod
2011-04-23Add FE_DENORMAL to the exception list just like the comment aboveMartynas Venckus
says; for couple of reasons: - makes it actually work, since the code clears ~FE_ALL_EXCEPT bits. - standard requires that.
2011-04-23Sysarch is for userland, not kernel.  ifdef _KERNEL -> ifndef _KERNELMartynas Venckus
so that the userland actually gets the proto. OK kettenis@, miod@.
2011-04-23Do not set kl_hub_widget[] default value more than once. Found the hard wayMiod Vallat
by deraadt@.
2011-04-23Move assignment of kl_hub_widget[] outside a #ifdef DEBUG ... #endif block,Miod Vallat
giving systems with non-default values a chance to work again. Pass the brown paper bag, please.
2011-04-23Partially revert 1.23, by removing the code which tries to pick the bestMiod Vallat
possible DMA window. This breaks systems which have physical memory contiguous to the selected DMA window. A fix is in the works, in the meantime the spice^WDMA should flow.
2011-04-23start at high ipl (quiets noise on startup).Dale Rahn
2011-04-22Turning on SCSIDEBUG (for debugging other drivers, of course) shouldTheo de Raadt
not make these drivers spew millions of lines of output. spotted as missing by miod
2011-04-22Remove unused structure member.Mark Kettenis
ok marco@, deraadt@
2011-04-22Stop printing the PCI interrupt line programmed by the BIOS for APICMark Kettenis
interrupts. It is irreleveant, confuses people and the information is available in pcidump(8) output anyway. ok oga@, jsg@, deraadt@
2011-04-22spacesMarco Peereboom
2011-04-21fenv for amd64; from matthew@Martynas Venckus
feedback & ok guenther@, matthew@
2011-04-21fenv for hppaMartynas Venckus
2011-04-21Fix dma_constraint upper limit computation. Logical or is not the same asMiod Vallat
arithmetic add.
2011-04-21Print memory sizes as longs. Stolen from sparc64.Miod Vallat