mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
m68k: Reformat arch/m68k/mm/hwtest.c
No functional changes Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
e4dc601bf9
commit
24cae7934c
1 changed files with 40 additions and 38 deletions
|
@ -33,8 +33,8 @@ int hwreg_present( volatile void *regp )
|
||||||
long tmp_vectors[3];
|
long tmp_vectors[3];
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__ (
|
||||||
( "movec %/vbr,%2\n\t"
|
"movec %/vbr,%2\n\t"
|
||||||
"movel #Lberr1,%4@(8)\n\t"
|
"movel #Lberr1,%4@(8)\n\t"
|
||||||
"movec %4,%/vbr\n\t"
|
"movec %4,%/vbr\n\t"
|
||||||
"movel %/sp,%1\n\t"
|
"movel %/sp,%1\n\t"
|
||||||
|
@ -50,7 +50,7 @@ int hwreg_present( volatile void *regp )
|
||||||
);
|
);
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
|
|
||||||
return( ret );
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(hwreg_present);
|
EXPORT_SYMBOL(hwreg_present);
|
||||||
|
|
||||||
|
@ -66,16 +66,18 @@ int hwreg_write( volatile void *regp, unsigned short val )
|
||||||
long tmp_vectors[3];
|
long tmp_vectors[3];
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__ (
|
||||||
( "movec %/vbr,%2\n\t"
|
"movec %/vbr,%2\n\t"
|
||||||
"movel #Lberr2,%4@(8)\n\t"
|
"movel #Lberr2,%4@(8)\n\t"
|
||||||
"movec %4,%/vbr\n\t"
|
"movec %4,%/vbr\n\t"
|
||||||
"movel %/sp,%1\n\t"
|
"movel %/sp,%1\n\t"
|
||||||
"moveq #0,%0\n\t"
|
"moveq #0,%0\n\t"
|
||||||
"movew %5,%3@\n\t"
|
"movew %5,%3@\n\t"
|
||||||
"nop \n\t" /* If this nop isn't present, 'ret' may already be
|
"nop\n\t"
|
||||||
* loaded with 1 at the time the bus error
|
/*
|
||||||
* happens! */
|
* If this nop isn't present, 'ret' may already be loaded
|
||||||
|
* with 1 at the time the bus error happens!
|
||||||
|
*/
|
||||||
"moveq #1,%0\n"
|
"moveq #1,%0\n"
|
||||||
"Lberr2:\n\t"
|
"Lberr2:\n\t"
|
||||||
"movel %1,%/sp\n\t"
|
"movel %1,%/sp\n\t"
|
||||||
|
@ -85,7 +87,7 @@ int hwreg_write( volatile void *regp, unsigned short val )
|
||||||
);
|
);
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
|
|
||||||
return( ret );
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(hwreg_write);
|
EXPORT_SYMBOL(hwreg_write);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue