summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-05-17Add a dummy IPL_MPSAFE definition.Mark Kettenis
ok miod@, mikeb@
2013-05-17Implement IPL_MPSAFE for pci bus interrupt handlers.Mark Kettenis
2013-05-16Implement a mechanism to establish interrupt handlers that don't grab theMark Kettenis
kernel lock upon entry through a new IPL_MPSAFE flag/level.
2013-05-16Implement a mechanism to establish interrupt handlers that don't grab theMark Kettenis
kernel lock upon entry through a new IPL_MPSAFE flag/level. ok mikeb@, mpi@
2013-05-16Ignore colormap operations at 1bpp, to work with Xorg wsfb driver.Kenji Aoyama
Still need more work in Xorg... ok miod@
2013-05-16Add missing IPL_AUDIO macro, needed by dev/audio.cAlexandre Ratchov
ok miod and kettenis
2013-05-16Run audio interrupts without grabbing the kernel lock. While IPL_SERIAL isMark Kettenis
higher than IPL_AUDIO on sparc64, and interrupt handlers running at IPL_SERIAL still grab the kernel lock, this isn't a problem as machines with audioce(4) are guaranteed not to have zs(4) (the only driver that uses IPL_SERIAL).
2013-05-15remove unused variableAlexandre Ratchov
2013-05-15remove unused splaudio/splx pairAlexandre Ratchov
2013-05-15remove unused variableAlexandre Ratchov
2013-05-15Initialize a teeny few more globals to reasonable values to allow for printf()Miod Vallat
to work as soon as cn_tab is initialized. Allows us to correctly printf or panic early on unrecognized systems. This used to be the case but got lost a long time ago.
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-05-14Declare the cmmu-related variables which are set early in the kernel life,Miod Vallat
before pmap_bootstrap(), as located in .rodata. This will get them write-protected after pmap has initialized, for free.
2013-05-14typo in multiple inclusion guard symbol name.Miod Vallat
2013-05-14Older BUG version do not implement the `out cr/lf' BUG system call, and, worse,Miod Vallat
do not return from it, for extra fun. The good thing is that the existing kernel console code logic issueing \n as \r\n works nicely with the regular BUG output routines, so there was no reason to use this particular BUG routine in the first place.
2013-05-14Add basic prcm support for am335x.rapha
Use separate headers and enable/disablemodule functions for the different boards. A lot of work by patrick@. ok patrick@, bmercer@
2013-05-14Add board id for beaglebone.rapha
ok patrick@, bmercer@
2013-05-13Get rid of some silly underscores.Mark Kettenis
2013-05-13Implement support for running interrupt handlers without taking the kernelMark Kettenis
lock, by adding a new BUS_INTR_ESTABLISH_MPSAFE flag for use with the (sparc64-specific) bus_intr_establish(9) interface. Add support for this flag to schizo(4); other bus drivers will ignore it for now. While there, remove the BUS_INTR_ESTABLISH_FASTTRAP flag which serves no purpose.
2013-05-12Make sboot really match its documented behaviour when booting without anMiod Vallat
interface name.
2013-05-12Tell wsdisplay(4) to switch back to the console screen upon entering ddb(4).Mark Kettenis
This gives users a decent chance to see panic messages and interact with ddb(4) when they're running X on hardware for which we have a KMS driver. Currently that means inteldrm(4). ok jsg@, guenther@
2013-05-12Handle big (a.k.a. >2TB) disks by adding logic to handle the 12 and 16Kenneth R Westerback
byte scsi read/write commands. Issue pointed out by John Morrissey via bugs@. Problem reproduced and fix tested by sf@ on vioblk. ok sf@ kettenis@
2013-05-12Take the kernel lock and call the actual interrupt handler from aMark Kettenis
single C function. Inspired by the change made to amd64/i386 by ratchov@.
2013-05-12Take the kernel lock and call the actual interrupt handler from aAlexandre Ratchov
single c function. This will hopefully make easier to stop taking the kernel lock when running "mp safe" interrupt handlers. help from ok kettenis
2013-05-12S-Records boot code for mvme88k, finally. Allows a kernel to be loaded fromMiod Vallat
network, using either the on-board interface (on MVME187 and MVME197) or any MVME376. While there, add MVME376 support to netboot.
2013-05-12Lower heap location and load address by 1MB for the secondary boot loaders,Miod Vallat
to fit 8MB boards.
2013-05-10whitespacesPatrick Wildt
2013-05-10Convert K&R style function declaration to ANSI.Patrick Wildt
2013-05-10Simplify mapping pages by just calling pmap_kenter_cache.Patrick Wildt
From oga at bitrig. ok miod@
2013-05-10ditch unused zskbd_device_lookup; verified by sebastia@Mike Belopuhov
2013-05-10Flush the secondary cache when dumping.Patrick Wildt
ok miod@
2013-05-10Remove an instruction cache sync which is not needed.Patrick Wildt
ok miod@
2013-05-10Map vector page executable when installing the fiq handler.Patrick Wildt
ok miod@
2013-05-10Map beagle kernel and its vector page executable.Patrick Wildt
ok miod@
2013-05-10whitespacesPatrick Wildt
2013-05-09Don't rely on uvm_km_free() to remove the pmap mapping when unmappingPatrick Wildt
in bus space. ok miod@
2013-05-09Drain the bufs after or before we do a bus space operation on ARMv7.Patrick Wildt
ok miod@
2013-05-09On ARMv7 we can't use the cache mask to check for coherency.Patrick Wildt
Therefore we add new macros to be able to check for it properly. ok miod@
2013-05-09Do not panic when running the MP kernel on a single-processor system; foundMiod Vallat
the hard way by tobiasu@
2013-05-09Add a driver for the OMAP identification registers/fuses,Patrick Wildt
so that we can adjust the timer frequency for PandaBoard version. From drahn at bitrig. ok bmercer@
2013-05-09Implement mtx_enter_try for armv7 and handle ci_mutex_level.Patrick Wildt
From drahn and oga at bitrig. ok bmercer@
2013-05-09Have the ARM MPCore Timer use the private timer, which will be very usefulPatrick Wildt
for SMP on the newer ARMv7 boards. From drahn at dalerahn.com. ok bmercer@
2013-05-09Have the ARM MPCore Timer use the private timer, which will be very usefulPatrick Wildt
for SMP on the newer ARMv7 boards. From drahn at dalerahn.com. ok bmercer@
2013-05-08Port over NetBSD's arm dma sync code. This makes it easier to flushPatrick Wildt
the secondary cache, as we always have the physical address. tested on panda and zaurus ok miod@
2013-05-08this comment is not attached to this value. removeTed Unangst
2013-05-08remove stale cyrix emc support, and switch to just using intial npxcwTed Unangst
ok kettenis
2013-05-07remove an unreferenced var that accessed uninitialised memoryJonathan Gray
ok miod@
2013-05-06the use of modern intel performance counter msrs to measure the number ofDavid Gwynne
cycles per second isnt reliable, particularly inside "virtual" machines. cpuspeed can be calculated as 0, which causes a divide by zero later on which is bad. this goes to more effort to detect if the performance counters are in use by the hypervisor, or detecting if they gave us a cpuspeed of 0 so we can fall through to using rdtsc. the same change as: src/sys/arch/i386/include/specialreg.h r.45 src/sys/arch/i386/isa/clock.c 1.49 ok jsg@
2013-05-06the use of modern intel performance counter msrs to measure the number ofDavid Gwynne
cycles per second isnt reliable, particularly inside "virtual" machines. cpuspeed can be calculated as 0, which causes a divide by zero later on which is bad. this goes to more effort to detect if the performance counters are in use by the hypervisor, or detecting if they gave us a cpuspeed of 0 so we can fall through to using rdtsc. ok jsg@
2013-05-05remove never used get/set ioperm sysarch functions. ok guentherTed Unangst