summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-05-22Add am335x as an omap device.rapha
ok patrick@
2013-05-22We're handling L2 there, so use the corresponding define, not the L1 one.Patrick Wildt
ok bmercer@
2013-05-22Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].Kenji Aoyama
Also modify RAWKEY_XXX values, to input the right characters on Japanese keyboard. ok miod@
2013-05-21de-static-ize prototypes as well, which makes these functions not-staticMark Kettenis
for real! Pointed out by Alexey E. Suslikov.
2013-05-21am335x has the mmc registers offset by 0x100, like omap4.rapha
ok patrick@
2013-05-21remove unused cpu_lock code (where it is truly unused). it is notTed Unangst
part of the future we have planned. middling ok from a few
2013-05-21When mapping a new entry, map it read-only, even though it should bePatrick Wildt
writable. This will cause a pmap fault on first write, so that we can mark the page as modified. Also mask the bits used for the protection settings, so that there aren't any leftovers. ok bmercer@
2013-05-21Small code clean up. Removing noisy printfs.Brandon Mercer
2013-05-21Remove some unused defines and make the number of interrupt lines variable.rapha
ok bmercer@
2013-05-21Add a driver for the am335x timers, to be used by the beaglebone.rapha
Derived from the existing omap3 gptimer. ok patrick@
2013-05-20de-static-ize, such that people don't get confused by aesni failures onMark Kettenis
AMD hardware the next time somebody tries to run on a broken KVM hypervisor.
2013-05-19Switch mvme68k to MI wdsc(4) driver. Tested on MVME147.Miod Vallat
2013-05-18fix cut'n'paste abuse in "can't happen" error messageMiod Vallat
2013-05-18Get rid of the pmap7 header now that we merged it into the pmap one.Patrick Wildt
2013-05-18Bring beagle back to the other pmap header now that it's merged.Patrick Wildt
2013-05-18Modify pmap to work with the pmap header used on armv7. Merge bothPatrick Wildt
headers so that we only need one of them. "Go for it." miod@
2013-05-18Mask out the TEX remap and the Access Flag bits when setting thePatrick Wildt
system control register. Also actually use the mask. ok miod@
2013-05-18Make sure we executed the instruction before continuing. AlsoPatrick Wildt
replace calls to drain the write buffer with the correct ones for armv7. ok miod@
2013-05-18Use the actual armv7 dcache_inv_range function instead of the wbinv one.Patrick Wildt
ok miod@
2013-05-18Missing bits intended to go with the previous commit but lost in diff splitting:Miod Vallat
Split inittodr/resettodr code from actual tod routines, to allow for multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-17Fix 'the right-of-cursor background color is inverted when we doKenji Aoyama
delete-after-cursor' bug on luna88k wscons console, by adding the same operation in om_putchar() to om_erasecols() and om_eraserows(). ok miod@
2013-05-17Preliminary support for MVME180 and MVME181 boards. On-board serial portsMiod Vallat
and VME controller are supported; tod chip isn't supported yet (coming soon). MVME236 memory boards are not supported and won't likely be (unless I get my hands on one). MVME181-1 boots multiuser (slowly) with MVME328 SCSI and MVME376 Ethernet despite only having 8MB of memory onboard. MVME180 untested; might need tweaking to get MVME SCSI and Ethernet boards supported. Many thanks to Matti Nummi for lending me an MVME181 board.
2013-05-17Replace the bunch of md_* function pointers with a `struct board' containingMiod Vallat
function pointers for all the board-specific code. Add a bunch of `struct board' methods to cover most, if not all, of the `per-board' logic. This allows most of the md drivers to be cleaned up and no longer need to embed board-specific knowledge.
2013-05-17Move interrupt-related defines from <machine/cpu.h> to <machine/intr.h>.Miod Vallat
No functional change.
2013-05-17Split inittodr/resettodr code from actual tod routines, to allow forMiod Vallat
multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-17Unnecessary includeMiod Vallat
2013-05-17Extend cmmu routines to return the caching mode to use for page tables.Miod Vallat
Alter the 88200-specific code to enforce cache-inhibited page tables for extremely old 88200 versions, and to disable write-back caching on systems where xmem instructions do not behave correctly when applied to write-back cached addresses. No change introduced on 88110 systems, as well as most 88100 systems; the affected systems are 88100 systems with 88100 revision < 10 and/or 88200 revision < 7; that is, only early MVME181 and MVME188 (not 188A) systems.
2013-05-17Fix comments telling that the `serial mode' bit in PSR only applies to 88110,Miod Vallat
it also exists on 88100. While there, do not allow userland to set it.
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@