summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-30fix typos in some commentsMike Larkin
2013-05-30Switch to using unhyphenated VIA padlock mnemonics. VIA abandoned theMatthew Dempsky
hyphen in their official programming guide sometime between 2003 and 2005, and Clang's integrated assembler does not support hyphenated mnemonics. ok jsg, deraadt
2013-05-29Add PMAP_PA_MASK to mips64. Needed for loongson hibernate.Paul Irofti
Okay miod@.
2013-05-29remove non-existing kernel configurationsJasper Lievisse Adriaanse
ok miod@
2013-05-27Use FLUSH_PIPELINE instead of rolling our own. No functional change.Miod Vallat
2013-05-27Drop lvalue casts; allows this to compile with gcc 4.Miod Vallat
2013-05-27Correctly specify the visible part of the rightmost tile when the currentMiod Vallat
resolution is not a multiple of the tile size, in emulation (text) mode. The usual 1280x1024 resolution ended up with the correct value, by chance, but a width of 1600 would be wrong. (X11 was running fine) Tested on the 1600x1024 resolution of the 1600SW display. Thanks to Johan Sanchez for lending me a 1600SW monitor and an adapter board.
2013-05-25Fix wbinv routine used by bus_dmamap_sync() to correctly operate on all cmmus,Miod Vallat
instead of I$ cmmu only. This longstanding bug has been introduced in r1.44, which commit message was right mentioning that it `fixes some bugs, probably introduces new ones as well'.
2013-05-25Allow badaddr() to be used with a size of 8. Needed by the MVME181 memoryMiod Vallat
detection code, and forgotten in previous commit.
2013-05-25Minimal support for MVME224 and MVME236 memory boards.Miod Vallat
2013-05-24Fix dow register value in resettodr() - kernel computes it zero-based, butMiod Vallat
chip want it one-based.
2013-05-23TOD clock support for AngelFire boardsMiod Vallat
2013-05-23Revert Active PS/2 support for now, until we find a solution suitableTobias Stoeckmann
for chipsets which stopped working. ok mpi
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