summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move the common bits of syscall invocation and return handling intoguenther2012-08-071-45/+11
| | | | | | | | | | an MI file, <sys/syscall_mi.h>, correcting inconsistencies and the handling when copyin() of arguments fails. Tested on i386, amd64, sparc64, and alpha (thanks naddy@) Any issues with other platforms will be fixed in tree. header name from millert@; ok miod@
* create new machine/_float.h which is namespace clean. create a newderaadt2012-06-262-58/+35
| | | | | | | | | MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
* missing ;deraadt2012-04-191-2/+2
|
* The first ktrace record for a newly spawned thread is a returnmikeb2012-04-111-2/+2
| | | | | | from a fork syscall done by the parent. Use __tfork, not rfork here to match the ktrace records for the parent (CALL __tfork, RET __tfork). ok guenther
* Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitguenther2012-04-101-3/+2
| | | | | | | | count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread. ok tedu@ mikeb@
* tedu the raidframe.jsing2012-04-061-4/+3
| | | | ok deraadt@
* Add APM_IOC_HIBERNATEderaadt2012-03-261-1/+2
|
* Remove no longer _KERNEL-visible constants which aren't used anyway.miod2012-02-261-5/+1
|
* Add an __attribute__((__format__(__kprintf__))) to disasm_interface_t.di_printfmiod2012-01-171-2/+3
|
* Make userret() MI. On architectures which jammed stuff into it in thederaadt2011-11-162-18/+2
| | | | | past, pull that code out seperately. ok guenther miod
* label_t is the kernel setjmp buffer. It should simply be an array ofderaadt2011-11-151-2/+2
| | | | | the right type, noone will ever fiddle with the internals. discussed with jsing
* Recognize a few more v6 and v7 instructions.miod2011-11-101-3/+12
|
* Fix manual wfi instruction encoding.miod2011-11-091-2/+2
|
* In pmap_remove(), don't forget to do tlb flushes even in the !pmap_cachevivtmiod2011-11-091-7/+9
| | | | | case. ok drahn@
* merge cpu_coredump() back to where it belongs, ok drahn miodderaadt2011-11-081-2/+1
|
* merge cpu_coredump() back to where it belongs; ok miod drahnderaadt2011-11-082-105/+54
|
* remove support for big endian; ok drahnderaadt2011-11-085-81/+5
|
* compat_13 support died ages agoderaadt2011-11-081-2/+1
|
* arm has no need for procfsderaadt2011-11-082-25/+1
|
* Fix the definition of L1_S_V7_AP().miod2011-11-071-2/+2
|
* For now turn back on the pmap PTE modification in pmap_l2ptp_ctordrahn2011-11-061-21/+35
| | | | | as was there before the PMAP_INCLUDE_PTE_SYNC changes. Beagle xM is happier this way.
* Correctly report WB and WT cache modes on v7 (they were swapped). ok uwe@miod2011-11-061-4/+5
|
* Remove incorrect logic leading to skip page table flushes becausemiod2011-11-051-19/+1
| | | | | | | PMAP_NEEDS_PTE_SYNC would get defined to zero on kernels lacking StrongArm support. discussed with and ok drahn@
* Specify the TLS variant for each platform.guenther2011-10-271-0/+33
|
* Introduce a pluggable interrupt controller infrastructure for beagle,drahn2011-10-241-1/+4
| | | | to allow panda to share the port.
* API change to initarm to pass arguments from the bootloader thru to MDdrahn2011-10-192-3/+7
| | | | | C code. Will be used on beagle to process machine id and atags. Looked at by uwe@, tested on beagle/armish/zaurus.
* Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).miod2011-10-101-1/+2
| | | | | | | | | | | | | | | | | | This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
* ccd goes to the atticderaadt2011-10-061-5/+4
| | | | discussed with jsing and millert
* None of the mainbus child devices care about getting a bus_space_tag_t frommiod2011-09-226-992/+22
| | | | | | | | | its parent, because they know better; so don't bother providing one, which allows more unused code to go to the Attic. While there, redo the config machinery for mainbus child devices, to bring it to our current standards. This also allows them to be disabled in UKC, should there be a need for this in the future.
* this escaped when miod threw cats off a bridgejsg2011-09-221-23/+0
| | | | ok miod@
* Get rid of curlwp references; mk@miod2011-09-211-9/+7
|
* Rename pmap_procwr() to pmap_proc_iflush() to get the intended behaviour.miod2011-09-212-8/+4
|
* Remove !defined(CACHE_CLEAN_BLOCK_INTR) code, and make CACHE_CLEAN_BLOCK_INTRmiod2011-09-202-38/+5
| | | | no longer an option.
* Late spring cleaning of the arm code for old dusty bits we do not want tomiod2011-09-2037-2306/+114
| | | | | | | | | | | | | | | | keep: - remove bootconfig parameter passing feature (unused). - unifdef __PROG32 and remove all remains of arm26 code. - remove ARMFPE support (unused). - remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM processor families, and the related silicon bug workarounds (especially the SA-110 STM^ bug). - remove cpu_functions no longer necessary after previous removals. - remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused). - make FIQ support conditional on option FIQ (unused, but may be eventually). Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for no good reason.
* Use cdev_ulpt_init() to setup ulpt(4) instead of cdev_lpt_init, formiod2011-09-161-2/+2
| | | | consistency.
* Provide namespace-safe alignment macros in <machine/_types.h>, withguenther2011-09-082-16/+20
| | | | | | | | compat names kept in <machine/param.h>. In <sys/socket.h>, pull in <sys/_types.h> instead of the namespace polluting <machine/param.h> and completely eliminate __CMSG_ALIGN, replaced by _ALIGN ok deraadt@
* Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.guenther2011-09-081-1/+13
| | | | | | | | Since the underlying types of the int_fast types are set by machine/_types.h, put internal macros in that same file and define the exposed INT_FAST*_{MIN,MAX} macros from those. ok millert@, kettenis@
* Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.kettenis2011-08-291-1/+7
| | | | ok guenther@
* When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For all thesekrw2011-07-081-3/+4
| | | | | | arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
* On those archs that read their disk (vs iso/udf) disklabels exclusivelykrw2011-07-061-3/+5
| | | | | | | | | | via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
* Recommit the reverted sigacts change now that the NFS use-after-freeguenther2011-07-051-10/+9
| | | | | | | | problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
* Nuke the useless D_KQFILTER flag and just check that d_kqfilter isnicm2011-07-041-2/+2
| | | | | | filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andnaddy2011-06-242-12/+4
| | | | | | | | | | | | | | | i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
* Fix the error path in bus_dmamem_map.ariane2011-06-231-6/+2
| | | | | | | As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
* Move the bufcachepercent setting code to MI locations -- set it to 42%deraadt2011-06-051-12/+1
| | | | | | | for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
* Also enclose variable names with external linkage in __BEGIN_DECLS.martynas2011-05-251-1/+3
| | | | | | | Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
* Add pci_intr_map_msi() stub.kettenis2011-05-211-1/+2
|
* Fix arguments to pool_init: want alignment of L2_TABLE_SIZE_REAL atmatthew2011-05-141-2/+2
| | | | | | offset 0, not default alignment at offset L2_TABLE_SIZE_REAL. ok miod@
* Expose pmap_prefer parameters.ariane2011-04-281-1/+9
| | | | This enables future uvm_map allocator to behave intelligently.