summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2013-02-12Back out per-CPU kernel profiling, it shouldn't modify a public headerMartin Pieuchot
at this moment.
2013-02-11Fix kernel profiling on MP systems by using per-CPU buffer. PreviouslyMartin Pieuchot
various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@
2013-02-09Grammar, typosMiod Vallat
2013-02-09Fix indent, add RCS IdMiod Vallat
2013-01-25Updates for beagle/panda work. OK patrick@ and miod@Brandon Mercer
2013-01-23Add instruction fault register functions, which will be needed for furtherPatrick Wildt
ARMv7 support. ok miod@
2013-01-18Update the ARM CPU ID information. The IDs aren't vendor/productPatrick Wildt
specific, they are specific to the ARM CPUs themselves. ok bmercer@ jsg@ deraadt@
2013-01-17New pmap for panda boards. Work from lots of folks.Brandon Mercer
OK miod@
2013-01-16cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; onlyMiod Vallat
affects a.out binaries' core dumps.
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-12-02Determine whether we're currently on the alternative signal stackPhilip Guenthe
dynamically, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/. Also, fix alt stack handling on vax, where it was completely broken. Testing and corrections by miod@, krw@, tobiasu@, pirofti@
2012-10-17Document the 'boothowto hack' used to flag to (a few) DVACT_POWERDOWNTheo de Raadt
handlers how hard they should hit the hardware.
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
2012-09-11Remove the 'OLF method' used for the transition from a.out to ELF andTheo de Raadt
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
2012-08-29Implement pci_min_powerstate().Mark Kettenis
2012-08-25Another missed PIC -> __PIC__ conversion.Mark Kettenis
ok deraadt@
2012-08-23kill nnpfs deadTheo de Raadt
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccPascal Stumpf
invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
2012-08-22use static inline instead of inline so this will be compatible withJonathan Gray
compilers defaulting to c99 inline instead of the old gnu style. ok guenther@ miod@ deraadt@
2012-08-07Move the common bits of syscall invocation and return handling intoPhilip Guenthe
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@
2012-06-26create new machine/_float.h which is namespace clean. create a newTheo de Raadt
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.
2012-04-19missing ;Theo de Raadt
2012-04-11The first ktrace record for a newly spawned thread is a returnMike Belopuhov
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
2012-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
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@
2012-04-06tedu the raidframe.Joel Sing
ok deraadt@
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2012-02-26Remove no longer _KERNEL-visible constants which aren't used anyway.Miod Vallat
2012-01-17Add an __attribute__((__format__(__kprintf__))) to disasm_interface_t.di_printfMiod Vallat
2011-11-16Make userret() MI. On architectures which jammed stuff into it in theTheo de Raadt
past, pull that code out seperately. ok guenther miod
2011-11-15label_t is the kernel setjmp buffer. It should simply be an array ofTheo de Raadt
the right type, noone will ever fiddle with the internals. discussed with jsing
2011-11-10Recognize a few more v6 and v7 instructions.Miod Vallat
2011-11-09Fix manual wfi instruction encoding.Miod Vallat
2011-11-09In pmap_remove(), don't forget to do tlb flushes even in the !pmap_cachevivtMiod Vallat
case. ok drahn@
2011-11-08merge cpu_coredump() back to where it belongs, ok drahn miodTheo de Raadt
2011-11-08merge cpu_coredump() back to where it belongs; ok miod drahnTheo de Raadt
2011-11-08remove support for big endian; ok drahnTheo de Raadt
2011-11-08compat_13 support died ages agoTheo de Raadt
2011-11-08arm has no need for procfsTheo de Raadt
2011-11-07Fix the definition of L1_S_V7_AP().Miod Vallat
2011-11-06For now turn back on the pmap PTE modification in pmap_l2ptp_ctorDale Rahn
as was there before the PMAP_INCLUDE_PTE_SYNC changes. Beagle xM is happier this way.
2011-11-06Correctly report WB and WT cache modes on v7 (they were swapped). ok uwe@Miod Vallat
2011-11-05Remove incorrect logic leading to skip page table flushes becauseMiod Vallat
PMAP_NEEDS_PTE_SYNC would get defined to zero on kernels lacking StrongArm support. discussed with and ok drahn@
2011-10-27Specify the TLS variant for each platform.Philip Guenthe
2011-10-24Introduce a pluggable interrupt controller infrastructure for beagle,Dale Rahn
to allow panda to share the port.
2011-10-19API change to initarm to pass arguments from the bootloader thru to MDDale Rahn
C code. Will be used on beagle to process machine id and atags. Looked at by uwe@, tested on beagle/armish/zaurus.
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
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.
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-22None of the mainbus child devices care about getting a bus_space_tag_t fromMiod Vallat
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.
2011-09-22this escaped when miod threw cats off a bridgeJonathan Gray
ok miod@
2011-09-21Get rid of curlwp references; mk@Miod Vallat