summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-05-31Fix RAMDISK kernels after previous. amd64_has_xcrypt needs to beMatthieu Herrb
#ifdef CRYPTO. noticed by marco@
2009-05-31Reinitialize lapic on ACPI resume.Mike Larkin
ok marco@
2009-05-31Move task register restore code to proper place.Mike Larkin
ok marco@
2009-05-31Add VIA crypto features support to amd64. ok deraadt@Matthieu Herrb
2009-05-30Without -v, be quietTheo de Raadt
ok toby
2009-05-30Don't use biosbasemem and biosextmem to initialize iomem_ex, since on someMark Kettenis
BIOSen it's a complete lie. Instead use the information from the memory map like we do on i386. ok weingart@, oga@
2009-05-30When booting in `install software' mode from the SGI boot menu, do not try toMiod Vallat
load bsd.rd but bsd.rd.IP## matching the IP code of the machine.
2009-05-28Be more paranoid in the IOC3 interrupt klugeMiod Vallat
2009-05-28Poor man's reset code for IP27/IP35 where returning through ARCBios doesn'tMiod Vallat
work, even after restoring TLB and exception code.
2009-05-28Handle NMI interrupts on IP27/IP35, gives us a change to play with ddb,Miod Vallat
and then restart system (NMI on these systems aren't intended to be recoverable).
2009-05-28If readsgilabel() is invoked in spoofing mode, only report the whole deviceMiod Vallat
and volume header partitions. This makes DIOCGPDINFO return correct results, which in turn lets disklabel -A behave as intended.
2009-05-28Bring back the curpmap change. It was missing a reload of the pmap onArtur Grabowski
curcpu when we were freeing a pmap. Tested and working for a few weeks now, but I was a bit too busy to commit it earlier.
2009-05-27Use the KL enumeration functions to try and figure out what kind of XBowMiod Vallat
we have, in order to pick a widget enumeration order matching the PROM. This is especially important when the boot path is in dksc() syntax.
2009-05-27Yet another attempt at a more reliable detection of the second interruptMiod Vallat
used by onboard IOC chips, by forcing the IOC to trigger this interrupt, and some help from the PCI bridge driver to report which interrupt has fired through a fake PCI configuration register. This works nicely on IP27 and IP35, but on IP30 the interrupt doesn't happen, for some reason; so keep the existing heuristic in case the above trick did not give us a valid interrupt number. In case we got an interrupt, this will also detect IOC configurations where there is actually one interrupt, should such configurations exist. <rant style="beck"> I probably deserve to rot in hell for this abomination, but I won't mind as long as the IOC designers who came with the bright ``let's use more than one interrupt and defecate on the pci spec'' ideas are there, too. </rant>
2009-05-27Rework KL board and component enumeration, to allow it to be used fromMiod Vallat
drivers with callback routines. While there, skip disabled or failed components.
2009-05-27Make sure onboard devices on Octane get their DMA byteswap settings correct.Miod Vallat
2009-05-27Rename the ast processing function from softintr() to ast(), to reduceMiod Vallat
confusion. Make sure this function is invoked with interrupts enabled now.
2009-05-25Years ago, I fixed an R5000 O2 instability by implementing a workaround forMiod Vallat
a chip bug, which was supposed to be fixed in that particular revision of the die but wasn't (tlbhandler.S 1.16). Being lazy, I did not write a runtime selection of the appropriate TLB handler code, although this was on my list. It turns out that this fix confuses the hell of R10000 processors revision 3 (but not earlier 2.x revisions), to the point of making the Origin 200 here hang so hard it would not even enter the NMI handler (don't ask me how I figured this was the cause). So it's time to choose the appropriate TLB handling flavour at runtime, building the trampoline code from the fixed exception handler location jumping to the handler address at runtime. As a bonus, kernels linked in KSEG0 get the address computation optimized and thus a smaller trampoline than before.
2009-05-24rework, also size ram.Dale Rahn
2009-05-24Device changes to go along with prcm rewrite.Dale Rahn
2009-05-24Provide more xbridge-specific functions in the bus_dma_tag_t we use forMiod Vallat
PCI buses on xbridge. In addition to this, we now support the limited IOMMU, allowing memory outside of the 2GB direct window to be used for DMA. Only tested on XBridge chip so far; this lets an IP35 machine with physical memory after the 2GB boundary run stable again.
2009-05-24Revert the memory range restriction code added to _dmamem_alloc(); devicesMiod Vallat
which require it will provide their own _dmamem_alloc() in their own bus_dma_tag_t. While there, rename bus_dma_segment_t ds_vaddr member to _ds_vaddr to make it clear this is an internal member.
2009-05-24Improve the ARMv7 support, still work in progress.Dale Rahn
2009-05-24Rework for 3530.Dale Rahn
2009-05-24remove debug print.Dale Rahn
2009-05-22According to pics on ebay, CADDuo boards indeed have Ethernet connectors.Miod Vallat
2009-05-22Drop almost unused <machine/psl.h> on sgi; move USERMODE() definition fromMiod Vallat
there to trap.c which is its only user. This also cleans up multiple inclusion of <machine/cpu.h> (because <machine/psl.h> includes it) in many places.
2009-05-21The only value that d_npartitions should have is MAXPARTITIONS.Kenneth R Westerback
2009-05-21Overhaul root device detection; the code will now follow the ARCS bootpathMiod Vallat
component by component, from device_register(). IP27 and IP35 systems using the dksc() syntax get their dksc() syntax converted to an ARCS bootpath, so the same logic will apply.
2009-05-21Do not attempt the interrupt deadlock workaround on IP30 yet, since theMiod Vallat
IP27 logic will obviously not work there.
2009-05-21If we had interrupts to service and interrupts to mark as pending, afterMiod Vallat
servicing interrupts, correctly mask the other (marked as pending) interrupts in imr. Otherwise we get another interrupt immediately for nothing (which updates imr correctly the second time).
2009-05-21Make sure cpu_switchto() returns to the new proc with interrupts enabled (thisMiod Vallat
is bandaid until interrupt handling is made more sane.
2009-05-21In splinit(), adjust proc0 pcb values, for kthread to start with correctMiod Vallat
interrupt masks.
2009-05-21Make sure splx() reenables hardware interrupt sources, even there aren'tMiod Vallat
any such interrupts marked as pending.
2009-05-20Add code to attach sun mice on sparc and sparc64 as wsmouse devices. SinceMiod Vallat
not all Sun mice run at the canonical 1200 bps, hop between 1200, 4800 and 9600 bps by paying attention to breaks on the line. Attachement and engine code written 7 years ago for OpenBSD/sparc, except for sparc64 com(4) attachment. Speed hop idea borrowed from Opensolaris. This allows sparc and sparc64 users to run X11 without needing a configuration file anymore, as it was in the XFree86 3.x days. Multihead configurations will still need a minimal configuration file, though.
2009-05-19Processing AST can trigger more AST. Loop on astpending instead of checkingMiod Vallat
only once.
2009-05-19Seperate out BSDI and SYSV syscall gate setup, so if we don'tTobias Weingartner
have one or the other option, we won't get said kernel entry point. Ok oga@
2009-05-18Add missing breaks so we don't fallthrough intoJonathan Gray
unwanted matching logic. ok oga@ deraadt@ miod@
2009-05-18Cleanup the ioctl and receive filter code for mec(4). This alsoJoel Sing
significantly reduces the number of times the chip gets wacked at boot. From brad, tested by me.
2009-05-17mux too, like GENERICTheo de Raadt
2009-05-17mux too, like GENERICarmish/conf/RAMDISKTheo de Raadt
2009-05-16Add option ISP_COMPILE_FW to kernels with isp(4).Miod Vallat
2009-05-16Count LoadedProgram regions as free memory, since these are either the bootMiod Vallat
loader image (which we can safely overwrite) or the kernel image itself (in case of netboot) and there is already code to move the kernel image out of the free memory later on.
2009-05-16need that include file...Theo de Raadt
2009-05-16Add vsw(4), a driver for the virtual network switch on sun4v. This is justMark Kettenis
some simple glue to attach each port as a network interface.
2009-05-16Enable udl(4) by default for amd64, i386, and macppc.Marcus Glocker
OK deraadt@, kettenis@
2009-05-16udl(4) and the wsmux(4) work on armishTheo de Raadt
2009-05-16must pull in the wscons gooTheo de Raadt
2009-05-15Oops, forgot to add this file, part of the dsrtc DS174x changes.Miod Vallat
2009-05-15TOD clock support for IOC3 flavours with DS174x chips (which are rebadgedMiod Vallat
MK48Txx). Entangled with preliminary changes which will hopefully eventually lead to power(4) attaching on IP30 (but not finished yet).