summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add APM_IOC_HIBERNATEderaadt2012-03-261-1/+2
|
* Make userret() MI. On architectures which jammed stuff into it in thederaadt2011-11-161-4/+1
| | | | | 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
* remove support for big endian; ok drahnderaadt2011-11-083-18/+3
|
* Fix the definition of L1_S_V7_AP().miod2011-11-071-2/+2
|
* 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-191-2/+2
| | | | | 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.
* Rename pmap_procwr() to pmap_proc_iflush() to get the intended behaviour.miod2011-09-211-5/+1
|
* Late spring cleaning of the arm code for old dusty bits we do not want tomiod2011-09-2013-257/+43
| | | | | | | | | | | | | | | | 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.
* 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@
* 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
* machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andnaddy2011-06-241-3/+3
| | | | | | | | | | | | | | | 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@
* 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
|
* Expose pmap_prefer parameters.ariane2011-04-281-1/+9
| | | | This enables future uvm_map allocator to behave intelligently.
* fenv improvements and cleanupsmartynas2011-04-281-14/+23
|
* fenv for armmartynas2011-04-241-0/+86
|
* Make sure the ALIGN() macro uses u_long on all platforms for consistency, andmiod2011-04-071-3/+3
| | | | update the comment block accordingly.
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-2320-77/+77
| | | | Discussed and okay drahn@. Okay deraadt@.
* - recognize OMAP3630/DM3730, as found in the beagleboard xMjasper2011-03-171-1/+2
| | | | ok drahn@
* Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.pirofti2011-03-111-1/+6
| | | | Okay guenther@, millert@.
* Change va_arg and va_end definitions from object-like macros tomatthew2011-03-021-3/+3
| | | | | | | function-like macros. Allows (questionable but legal) use of "va_arg" as a local variable name in code that includes <stdarg.h>. "seems right" deraadt@
* Introduce pmap_uncache_page(), created from the guts of pmap_kenter_cache()miod2011-01-041-1/+2
| | | | | | to make a page uncached and maintain this both at the pte and pv list level, and make pmap_kenter_cache() use it. ok drahn@
* Kill pmap_phys_address(), and force every driver's mmap() routine to returnmiod2010-12-261-3/+1
| | | | | | | a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
* Convert netisr to a normal soft interrupt instead of hanving MD codeclaudio2010-12-211-6/+1
| | | | | | for it. This makes the netisr a real C function which will help further development. No noticable performance change on i386 and amd64. With input from kettenis@ and miod@ additional OKs mikeb@ and henning@
* oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinkstedu2010-12-151-1/+4
| | | | its better as a per arch MD define anyway. all default to MAXDSIZ as before.
* Change the signature of PMAP_PREFER from void PMAP_PREFER(..., vaddr_t *) tomiod2010-12-061-2/+2
| | | | | | vaddr_t PMAP_PREFER(..., vaddr_t). This allows better compiler optimization when the function is inlined, and avoids accessing memory on architectures when we can pass function arguments in registers.
* Introduce a new pci routine, pci_conf_size(), which returns the size of amiod2010-12-041-1/+4
| | | | | | | given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
* Remove inapplicable or no longer used cdevsw[] entries and macros.miod2010-11-281-55/+1
|
* Get rid of machdep.debug, machdep.booted_device and machdep.booted_kernelmiod2010-11-281-7/+7
| | | | | | sysctl. Only the first one is really implemented, and it only matters on older processor flavours we don't run on (and don't want to), so this was just dead weight.
* Get rid of the global pmap list and related debug code. While there, mergemiod2010-11-271-2/+1
| | | | pmap_pinit() into pmap_create(). Help and ok drahn@
* Remove ddb single-step load and store counters. Most platforms do notmiod2010-11-271-3/+1
| | | | implement them, and they are of questionable usefulness.
* Oops, removed a few lines too many in previous change.miod2010-11-261-1/+3
|
* Remove old pcons leftover defines.miod2010-11-221-9/+1
|
* Remove unused VM_MAX_KERNEL_BUF define.miod2010-11-221-12/+1
|
* Do not attempt to include <machine/psl.h> when including this file frommiod2010-11-201-7/+2
| | | | assembly code (_KERNEL && _LOCORE)
* miscellanous->miscellaneousmiod2010-11-191-2/+2
|
* Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,miod2010-09-281-1/+4
| | | | | to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
* Remove unused header file.miod2010-07-301-54/+0
|
* Fix more cdev initializations which were using enodev for poll; ok kettenisderaadt2010-07-211-2/+2
|
* Add more support bits for ARMv7, including frame for VIPT (pmap_prefer).drahn2010-07-011-1/+10
|
* Add support for mapping ACPI to PCI devicesjordan2010-06-291-1/+3
| | | | ok kettenis, deraadt
* there is no reason for one MAXPHYS definition to be different from all the othersderaadt2010-05-241-2/+2
|
* De-inline atomic_setbits_int and atomic_clearbits_int, on arm these functionsdrahn2010-04-221-21/+3
| | | | | are emulated by disabling interrupts which requires a lot more header files than a simple atomic operation should be need. ok deraadt@