aboutsummaryrefslogtreecommitdiff
path: root/sys/libkern/arm
Commit message (Collapse)AuthorAgeFilesLines
* sys: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* sccs: Manual changesWarner Losh2023-11-271-8/+0
| | | | | | | | | | | | | | | For the uncommon items: Go through the tree and remove sccs tags that didn't fit any nice pattern. If in the neighborhood, other SCM tags were removed when they were detritis of long-ago CVS somehow in the early mists of the project. Some adjacent copyrights stringswere removed (they duplicated the copyright notices in the file). This also removed non-standard formations of omission of SCCS tags (usually by adding an extra #if 0 somewhere. After this commit, a number of strings tagged with the 'what' @(#) prefix remain, but they are primarily copyright notices. Sponsored by: Netflix
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-168-15/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-122-2/+2
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* arm: Remove unused ffs.SWarner Losh2022-10-201-58/+0
| | | | | | | | We've not used ffs.S since we retired armv[45] support. Remove it from the tree. Suggested by: andrew in D37069 Sponsored by: Netflix
* arm: flip memclr to use memsetMateusz Guzik2021-08-231-2/+4
| | | | | | Reviewed by: andrew Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D31217
* Remove obsolete code gated on _ARM_ARCH_*Andrew Turner2021-01-281-29/+0
| | | | | | | This is all code only run on ARMv4 and ARMv5. Support for these have been dropped from FreeBSD. Differential Revision: https://reviews.freebsd.org/D28314
* sys/kern: adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-272-1/+5
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326271
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* Add the __aeabi_memclr8 symbol, clang 3.7 uses this.Andrew Turner2015-09-211-0/+2
| | | | | | | | MFC after: 1 week Sponsored by: ABT Systems Lts Notes: svn path=/head/; revision=288073
* Remove checks for __ARM_EABI__, we only build for EABI now.Andrew Turner2015-07-096-30/+0
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=285338
* Add support for __aeabi_memclr4, clang 3.7 calls it.Andrew Turner2015-07-091-0/+40
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=285337
* Add more __aeabi_memcpy functions, later versions of clang generate callsAndrew Turner2015-05-311-0/+4
| | | | | | | to these functions. Notes: svn path=/head/; revision=283805
* Use the unified syntax in a few more assembly filesAndrew Turner2014-12-051-1/+2
| | | | | | | | MFC after: 1 week Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=275520
* Fix unwind-info errors in our hand-written arm assembler code.Ian Lepore2014-08-011-10/+10
| | | | | | | | | | | | | | | | | | | | | | We have functions nested within functions, and places where we start a function then never end it, we just jump to the middle of something else. We tried to express this with nested ENTRY()/END() macros (which result in .fnstart and .fnend directives), but it turns out there's no way to express that nesting in ARM EHABI unwind info, and newer tools treat multiple .fnstart directives without an intervening .fnend as an error. These changes introduce two new macros, EENTRY() and EEND(). EENTRY() creates a global label you can call/jump to just like ENTRY(), but it doesn't emit a .fnstart. EEND() is a no-op that just documents the conceptual endpoint that matches up with the same-named EENTRY(). This is based on patches submitted by Stepan Dyatkovskiy, but I made some changes and added the EEND() stuff, so blame any problems on me. Submitted by: Stepan Dyatkovskiy <stpworld@narod.ru> Notes: svn path=/head/; revision=269390
* Fix ixp425 boot2 with ARM EABI:Andrew Turner2013-09-291-0/+4
| | | | | | | | | | | - libkern is missing __aeabi_llsl, implement this by calling __ashldi3. - Because of how the asm entry macros are defined the boot2 code requires the unwind symbols to exist, include them in boot2. Approved by: re (marius) Notes: svn path=/head/; revision=255939
* Add __aeabi_memset to libkern, implemented using memset, as clang mayAndrew Turner2013-03-161-0/+49
| | | | | | | generate calls to it. Notes: svn path=/head/; revision=248395
* Add END to ARM libkern assembly functionsAndrew Turner2013-03-164-1/+19
| | | | Notes: svn path=/head/; revision=248367
* Move the __aeabi_unwind_cpp_pr{0,1,2} functions to libkern so they can beAndrew Turner2013-03-161-0/+58
| | | | | | | referenced in a non-debug kernel. Notes: svn path=/head/; revision=248366
* Add __aeabi_memcpy to libkern as clang may generate calls to it.Andrew Turner2013-03-101-0/+37
| | | | Notes: svn path=/head/; revision=248128
* Add the required __aeabi_* functions the kernel uses when built for ARM EABIAndrew Turner2013-01-173-0/+128
| | | | Notes: svn path=/head/; revision=245548
* Do not use __XSCALE__ to detect if clz is available, use _ARM_ARCH_5 instead.Olivier Houchard2007-10-131-1/+1
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=172615
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-072-2/+2
| | | | Notes: svn path=/head/; revision=139815
* Use the RET macro.Olivier Houchard2004-11-092-6/+6
| | | | Notes: svn path=/head/; revision=137463
* Implement ffs with clz for Xscale.Olivier Houchard2004-11-071-1/+8
| | | | | | | Idea taken from: NetBSD Notes: svn path=/head/; revision=137342
* Don't attempt to profile __udivsi3() and friends, as mcount() uses them.Olivier Houchard2004-10-011-4/+4
| | | | Notes: svn path=/head/; revision=136031
* Import libkern arm specific bits.Olivier Houchard2004-05-143-0/+713
Notes: svn path=/head/; revision=129210