rockbox/firmware/asm/arm
Solomon Peachy 905e19905b ARM: Rejigger the asm corelock functions
This appears to solve _some_ of the crashes experienced when using
gcc494 on the multicore PP targets (eg most older ipods).

(With this change, the asm vs plain-C versions behave identically)

corelock_lock(), corelock_unlock(), and corelock_trylock() were declared
with the 'naked' attribute.  However, naked functions are only allowed
to have 'Basic Asm' components, and we used some extended asm, but
without declaring clobbered registers, making assumptions about register
arguments, and also directly returned to the caller via asm code.

This is what the GCC docs have to say about this stuff:

"While using extended asm or a mixture of basic asm and C code may
 appear to work, they cannot be depended upon to work reliably and are
 not supported."

Change-Id: I79a9c4895584f9af365e6c2387595e9c45d89c7d
2020-07-03 21:36:41 +00:00
..
beep.c Split CPU-optimized beep code into the firmware/asm tree. 2012-02-18 04:50:33 -05:00
corelock.c ARM: Rejigger the asm corelock functions 2020-07-03 21:36:41 +00:00
ffs.S Move optimized ffs to firmware/asm, using the new automatic-asm-picking infrastructure. 2012-01-22 18:46:45 +01:00
lcd-as-memframe.S Implement a C version lcd-as-memframe.c and move it and the asm to firmware/asm. 2012-01-22 18:46:45 +01:00
memcpy.S Add mempcpy implementation 2014-08-29 22:06:57 -04:00
memmove.S Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
memset.S Fix arm memset() handling of negative arguments 2017-07-27 19:09:50 -04:00
memset16.S Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
pcm-mixer-armv4.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
pcm-mixer-armv5.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
pcm-mixer-armv6.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
pcm-mixer.c Move pcm_mixer helper routines to firmware/asm. 2012-01-22 18:46:45 +01:00
thread.c Do some kernel cleanup 2014-08-08 01:59:59 -04:00
thread.h Introducing Targets iBasso DX50 & iBasso DX90 2014-09-18 18:19:01 +02:00