summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2010-05-24there is no reason for one MAXPHYS definition to be different from all the ↵Theo de Raadt
others
2010-04-27arm32 define isn't used on any arm platforms, and machine/io.h doesn't exist,Dale Rahn
delete the check. ok deraadt
2010-04-22De-inline atomic_setbits_int and atomic_clearbits_int, on arm these functionsDale Rahn
are emulated by disabling interrupts which requires a lot more header files than a simple atomic operation should be need. ok deraadt@
2010-04-22Whitespace cleanup on generated asm code, so it is readable.Dale Rahn
2010-04-21more cleanup to cope with the change that tries to make proc.h not actTheo de Raadt
like it is everything.h ok tedu
2010-04-12Some of the line disciplines want to check for suser. Better to pass themTed Unangst
a process instead of using curproc. ok deraadt
2010-04-04OpenBSD uses bus_space_copy_#, not bus_space_copy_region_#. Make sure only theMiod Vallat
first name is used, and remove any #define foo_region foo compatibility defines. Also, on sparc64, do not provide a `raw' version of bus_space_copy.
2010-03-31Make sure the boundaries of uvm_pglistalloc() calls are set up with lowMiod Vallat
being page-aligned, and high being end of page (i.e. high & PAGE_MASK == PAGE_MASK) everywhere, for consistency. Future code will depend on this. ok deraadt@
2010-03-30Add missing bthub device entries on arches that support bluetooth.Matthieu Herrb
ok miod@, deraadt@, todd@.
2010-03-30Prevent the apmd/x races for good.Owain Ainsworth
When we hit suspend time, go through all wsdisplays on the system. if they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full vt switch to a !mapped vt, and prevent switching back until resume time. This has to be called from MD code because this involves userland running so that X can run the vt switch signal handler. This way, any case where we are using the "poke registers from userland" model, we will not be on the hardware when we go down, so the kernel can actually handle thing properly. Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at this time.. Idea from deraadt somewhere over the Faroe Islands (I thought of a similar thing myself a while ago). Much prompting from him. Ok and comments miod@
2010-03-29PMAP_CANFAIL for bus_dmamem_map on all other architectures (and someOwain Ainsworth
whitespace tweaks on i386 so that it matches). ok kettenis@
2010-03-03When allocating virtual space for bus_space_map, don't useOwain Ainsworth
uvm_km_alloc() (which allocates some virtual space and then $size_of_mapping pages which it then enters) *then* pmap_kenter the bus_space address that we wish to map, it's just a little bit stupid and a waste of memory. replace with uvm_km_valloc and ponies for everyone. ok drahn@
2010-02-22Use the logical or operator, not the bitwise operator inKevin Lo
the preprocessor.
2010-02-03typo. CPU_ID_ARM1022EJS -> CPU_ID_ARM1026EJSKevin Lo
ok drahn@
2010-02-01Commit a diff I had sitting around in my tree that 90% matches one sent byDale Rahn
dermist. fixes moko build.
2009-11-27Move MB_LEN_MAX into the machine-independent sys/limits.h header,Philip Guenthe
rather than defining it separately for each architecture. Also set it to 4, to accommodate for future UTF-8 support (rfc3629). Diff by stsp, committing to catch the libc major bump ok kettenis@, guenther@
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2009-11-08Make sure xscale_cache_flushD_rng will not try to flush more than theMiod Vallat
cache size; might skirt some cache hazards. ok deraadt@
2009-11-04Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.Mark Kettenis
ok jsing@, miod@
2009-11-01Call selwakeup()/KNOTE() even if the queue has emptied completely.Nicholas Marriott
ok miod
2009-10-31Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()Theo de Raadt
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-27typosMiod Vallat
2009-09-09Add simple PXA27x matrix keypad controller driverMarek Vasut
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-03pxa2x0_mmc.c: allow passing detect GPIO from platformMarek Vasut
OK drahn@
2009-09-03Rearrange the interrupt handler so that it handlers "error status bits"Theo de Raadt
first instead of trying to push data transfers forward. Also, ensure that DONE interrupts are only un-masked when we are on the last sub-block, and that otherwise we process based on RD_REQ and WR_REQ interrupts coming in. Done with drahn and marex (starting from bizzare workarounds by marex which we could not explain) This appears to make Zaurus SD reads & writes completely reliable, even at very low cpu speeds. ok drahn marex
2009-09-03pxa2x0_mmc.c: Dont read MMC_STAT in intr_done if not neededMarek Vasut
It is not needed to read MMC_STAT if DPRINTF is empty. OK deraadt
2009-09-02pxa2x0_mmc.c: optimize the speed of the interrupt handlerMarek Vasut
This patch also eliminates the bug causing any write to the card to hang the whole controller (partly). OK deraadt@
2009-08-26more bloody const crap mk brokeTheo de Raadt
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-13toby do you even care enough to try to do right?Theo de Raadt
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-13wire vscsi up to a cdevDavid Gwynne
for claudio@ ok deraadt@
2009-08-13A new(er) mtx_enter_try().Tobias Weingartner
Ok oga@, "the time is now" deraadt@.
2009-08-11Do not bother initializing bufpages in the md code if the computation isMiod Vallat
exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
2009-08-11With the SysV memory allocation changes, allocsys() doesn't do anythingMiod Vallat
anymore. Get rid of it completely.
2009-08-09Forgot to commit this bit for the SysV message queue cleanup.Bret Lambert
Found by miod@
2009-08-02Never return nonzero in a device activate method invoked with DVACT_ACTIVATE,Miod Vallat
for this prevents it to be invoked with DVACT_DEACTIVATE later. This had been sweeped some time ago already, but bad constructs crept in again.
2009-07-26Make sure all platforms understand the flags argument of bus_space_map() andMiod Vallat
bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
2009-07-14Unbreak moko, SOFTSERIAL->SOFTTTY, a pmap change, and a missing file.Dale Rahn
Not tested on hardware, but at least compiles now. problem pointed out by Sylvestre Gallon
2009-06-27Revert the last change to this file which was made with armv7 support came in.Dale Rahn
The change was unrelated to v7 support, it was a cleanup item. For some reason this breaks ksyms on zaurus. however zaurus uses the old loadfile that is not fully synced with libsa
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-05-24Improve the ARMv7 support, still work in progress.Dale Rahn
2009-05-11Better config for v7.Dale Rahn
2009-05-11Add some (not used yet) control regiser bit definitions.Dale Rahn
2009-05-09Missed adding this file.Dale Rahn
2009-05-08Pieces of arm11 and armv7 support for newer cpus. This is work in progressDale Rahn
and not complete.
2009-04-20Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.Owain Ainsworth
Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
2009-04-19Mutexes for arm and sh softinterrupts.Owain Ainsworth
ok miod@