mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Changed __asm__ to asm
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@180 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b701c89624
commit
c7e811bffe
1 changed files with 31 additions and 31 deletions
|
@ -44,45 +44,45 @@ static thread_t threads = {1, 0};
|
||||||
* Store non-volatile context.
|
* Store non-volatile context.
|
||||||
*---------------------------------------------------------------------------
|
*---------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
static __inline__ void stctx(void* addr)
|
static inline void stctx(void* addr)
|
||||||
{
|
{
|
||||||
__asm__ __volatile__ ("mov.l r8, @(0, %0)\n\t"
|
asm volatile ("mov.l r8, @(0, %0)\n\t"
|
||||||
"mov.l r9, @(4, %0)\n\t"
|
"mov.l r9, @(4, %0)\n\t"
|
||||||
"mov.l r10, @(8, %0)\n\t"
|
"mov.l r10, @(8, %0)\n\t"
|
||||||
"mov.l r11, @(12, %0)\n\t"
|
"mov.l r11, @(12, %0)\n\t"
|
||||||
"mov.l r12, @(16, %0)\n\t"
|
"mov.l r12, @(16, %0)\n\t"
|
||||||
"mov.l r13, @(20, %0)\n\t"
|
"mov.l r13, @(20, %0)\n\t"
|
||||||
"mov.l r14, @(24, %0)\n\t"
|
"mov.l r14, @(24, %0)\n\t"
|
||||||
"mov.l r15, @(28, %0)\n\t"
|
"mov.l r15, @(28, %0)\n\t"
|
||||||
"stc sr, r0\n\t"
|
"stc sr, r0\n\t"
|
||||||
"mov.l r0, @(32, %0)\n\t"
|
"mov.l r0, @(32, %0)\n\t"
|
||||||
"stc gbr, r0\n\t"
|
"stc gbr, r0\n\t"
|
||||||
"mov.l r0, @(36, %0)\n\t"
|
"mov.l r0, @(36, %0)\n\t"
|
||||||
"sts pr, r0\n\t"
|
"sts pr, r0\n\t"
|
||||||
"mov.l r0, @(40, %0)" :: "r" (addr));
|
"mov.l r0, @(40, %0)" :: "r" (addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
* Load non-volatile context.
|
* Load non-volatile context.
|
||||||
*---------------------------------------------------------------------------
|
*---------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
static __inline__ void ldctx(void* addr)
|
static inline void ldctx(void* addr)
|
||||||
{
|
{
|
||||||
__asm__ __volatile__ ("mov.l @(0, %0), r8\n\t"
|
asm volatile ("mov.l @(0, %0), r8\n\t"
|
||||||
"mov.l @(4, %0), r9\n\t"
|
"mov.l @(4, %0), r9\n\t"
|
||||||
"mov.l @(8, %0), r10\n\t"
|
"mov.l @(8, %0), r10\n\t"
|
||||||
"mov.l @(12, %0), r11\n\t"
|
"mov.l @(12, %0), r11\n\t"
|
||||||
"mov.l @(16, %0), r12\n\t"
|
"mov.l @(16, %0), r12\n\t"
|
||||||
"mov.l @(20, %0), r13\n\t"
|
"mov.l @(20, %0), r13\n\t"
|
||||||
"mov.l @(24, %0), r14\n\t"
|
"mov.l @(24, %0), r14\n\t"
|
||||||
"mov.l @(28, %0), r15\n\t"
|
"mov.l @(28, %0), r15\n\t"
|
||||||
"mov.l @(32, %0), r0\n\t"
|
"mov.l @(32, %0), r0\n\t"
|
||||||
"ldc r0, sr\n\t"
|
"ldc r0, sr\n\t"
|
||||||
"mov.l @(36, %0), r0\n\t"
|
"mov.l @(36, %0), r0\n\t"
|
||||||
"ldc r0, gbr\n\t"
|
"ldc r0, gbr\n\t"
|
||||||
"mov.l @(40, %0), r0\n\t"
|
"mov.l @(40, %0), r0\n\t"
|
||||||
"lds r0, pr\n\t"
|
"lds r0, pr\n\t"
|
||||||
"mov.l r0, @(0, r15)" :: "r" (addr));
|
"mov.l r0, @(0, r15)" :: "r" (addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------
|
/*---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue