1
0
Fork 0
forked from len0rd/rockbox

Added new coldfire assembly LPC decoder routine to libFLAC.

Added clear accumulator policy.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6108 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2005-03-03 12:17:45 +00:00
parent d061b371d6
commit 340d824542
6 changed files with 262 additions and 209 deletions

View file

@ -419,6 +419,13 @@ void (* const vbr[]) (void) __attribute__ ((section (".vectors"))) =
void system_init(void)
{
/* Clear the accumulators. From here on it's the responsibility of
whoever uses them to clear them after use (use movclr instruction). */
asm volatile ("movclr.l %%acc0, %%d0\n\t"
"movclr.l %%acc1, %%d0\n\t"
"movclr.l %%acc2, %%d0\n\t"
"movclr.l %%acc3, %%d0\n\t"
: : : "d0");
}
void set_cpu_frequency (long) __attribute__ ((section (".icode")));