summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2013-08-08Remove duplicate loop.Raphael Graf
ok patrick@
2013-08-07We uniformly define size_t to be unsigned long and ssize_t to be long. MakeMark Kettenis
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
2013-08-06add Cortex A15 R4Jonathan Gray
ok patrick@
2013-08-06The Cortex bus should be useful for Cortex-A7, too.Patrick Wildt
ok rapha@ jsg@
2013-08-06Attach amptimer only on Cortex-A9, as all Cortex-A8 doesn't have a genericPatrick Wildt
timer and the newer Cortexes have another generic timer. ok rapha@ jsg@
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-11Enable bus_space_set_region_4 for armv7.Raphael Graf
ok patrick@
2013-07-05Take II, this time without flubbing off_t: : move several internalPhilip Guenther
type definitions that are the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@ kettenis@ otto@
2013-07-04backout previous; off_t must be signed and there might be other C++ APIOtto Moerbeek
breakage lurking; ok kettenis@
2013-07-04To ease future changes, move several internal type definitions that arePhilip Guenther
the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@
2013-06-14Don't pull cpufunc.h in from the machine include directory, but fromPatrick Wildt
the arm one. ok bmercer@
2013-06-13ovbcopy begoneTheo de Raadt
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-09typoMiod Vallat
2013-06-03more fuse in more places. credit: miodTed Unangst
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
2013-05-31remove counters for simplelocksTed Unangst
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-22We're handling L2 there, so use the corresponding define, not the L1 one.Patrick Wildt
ok bmercer@
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-18Get rid of the pmap7 header now that we merged it into the pmap one.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-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-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-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-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-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-02Remove an #endif I forgot in there.Patrick Wildt
2013-05-02Add a driver for the secondary cache controller on the PandaBoard andPatrick Wildt
other ARM Cortex based boards. Disabled for now, until proper secondary cache flushing is done where it's needed. ok miod@
2013-05-02remove static from a simple lock to avoid a compiler warning/error thatTed Unangst
shows up due to the lock.h simplification. noticed by patrick. stealing his commit because the tree should at least compile while we debate the future of simplelocks.
2013-05-01Add a secure monitor call function, so that a secondary cache controllerPatrick Wildt
driver can talk to its controller properly. From drahn at dalerahn.com. ok bmercer@
2013-05-01Fix a case where we might be cache flushing unmapped pages.Patrick Wildt
From Raphael Graf and NetBSD. ok miod@
2013-05-01Add a cortex bus which represents the ARM MPCore Complex.Patrick Wildt
It will attach only to ARM Cortex A9 and A15 SoCs. The generic interrupt controller and timer will attach to this bus, later a secondary cache controller can be added. The base address for those controllers are figured out using the periphbase register. ok bmercer@
2013-04-30Switch from pmap to pmap7.Patrick Wildt
ok bmercer@
2013-04-30Add context switching code matching to our pmap for ARMv7.Patrick Wildt
ok bmercer@
2013-04-30Add matching header for pmap7.Patrick Wildt
ok bmercer@
2013-04-30Replace the statically defined protection bits with a macro, which willPatrick Wildt
be useful for the upcoming ARMv7 changes. ok bmercer@
2013-04-28Revert the ARMv7 header split introduced in pmap7.Patrick Wildt
ok bmercer@
2013-04-28Improved dealing of ARMv7 faults. Added ARMv7 fault descriptions.Patrick Wildt
ok bmercer@ tested on zaurus by todd@ and patrick@ tested on armv7 boards
2013-04-26ARMv7 userland uses a single domain. This define is already used in pmap7.Patrick Wildt
ok bmercer@