summaryrefslogtreecommitdiff
path: root/sys/libkern/arm
Commit message (Collapse)AuthorAgeFilesLines
* Clean up our ARM assembly:Andrew Turner2014-12-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC 275256: Switch to the ARM unified assembly language as the clang integrated as only supports it. Binutils supports it when the ".syntax unified" directive is set. Sponsored by: ABT Systems Ltd MFC 275264: Update _ENTRY to use _EENTRY to reduce the common code. MFC 275321: Remove extra labels, ENTRY_NP already provides them. Sponsored by: ABT Systems Ltd MFC 275322: Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND Sponsored by: ABT Systems Ltd MFC 275416: Fix the name of the coprocessor to include the "p" prefix, the clang integrated assembler expects this. Sponsored by: ABT Systems Ltd MFC 275418: Switch to unified syntax so these can be built with clang 3.5. Sponsored by: ABT Systems Ltd MFC 275519: Add missing END macros to some of the xscale functions. Sponsored by: ABT Systems Ltd MFC 275520: Use the unified syntax in a few more assembly files Sponsored by: ABT Systems Ltd MFC 275521: Set the alignment to 4-bytes after a string as clang 3.5 can switch to thumb mode if this is incorrect. Sponsored by: ABT Systems Ltd MFC 275522: Place the literal pool after a RET otherwise clang 3.5 tries to put it too far away from a ldr psuedo instruction. With this clang will place the literal value here where it's close enough to be loaded. Sponsored by: ABT Systems Ltd MFC 275523: Switch to an armv6k cpu, without this clang 3.5 complains "bx lr" is unsupported as it needs a newer cpu. Sponsored by: ABT Systems Ltd MFC 275524: Switch to a .cpu directive. These will work when clang 3.5 is imported where the .arch directive is a nop. Sponsored by: ABT Systems Ltd Notes: svn path=/stable/10/; revision=275767
* MFC r269390: Fix unwind info in hand-written asm (avoid nested functions).Ian Lepore2014-08-111-10/+10
| | | | Notes: svn path=/stable/10/; revision=269796
* 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