forked from Imagelibrary/rtems
2001-01-12 Joel Sherrill <joel@OARcorp.com>
* rtems/score/mips.h (mips_get_sr, mips_set_sr): Corrected register constraints from "general" to "register".
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-01-12 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* rtems/score/mips.h (mips_get_sr, mips_set_sr): Corrected
|
||||
register constraints from "general" to "register".
|
||||
|
||||
2001-01-09 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* cpu_asm.S: Use SR_INTERRUPT_ENABLE_BITS instead of SR_XXX constants
|
||||
|
||||
@@ -77,12 +77,12 @@ extern "C" {
|
||||
|
||||
#define mips_get_sr( _x ) \
|
||||
do { \
|
||||
asm volatile( "mfc0 %0, $12; nop" : "=g" (_x) : ); \
|
||||
asm volatile( "mfc0 %0, $12; nop" : "=r" (_x) : ); \
|
||||
} while (0)
|
||||
|
||||
#define mips_set_sr( _x ) \
|
||||
do { \
|
||||
unsigned int __x = (_x); \
|
||||
register unsigned int __x = (_x); \
|
||||
asm volatile( "mtc0 %0, $12; nop" : : "r" (__x) ); \
|
||||
} while (0)
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-01-12 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* rtems/score/mips.h (mips_get_sr, mips_set_sr): Corrected
|
||||
register constraints from "general" to "register".
|
||||
|
||||
2001-01-09 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* cpu_asm.S: Use SR_INTERRUPT_ENABLE_BITS instead of SR_XXX constants
|
||||
|
||||
@@ -77,12 +77,12 @@ extern "C" {
|
||||
|
||||
#define mips_get_sr( _x ) \
|
||||
do { \
|
||||
asm volatile( "mfc0 %0, $12; nop" : "=g" (_x) : ); \
|
||||
asm volatile( "mfc0 %0, $12; nop" : "=r" (_x) : ); \
|
||||
} while (0)
|
||||
|
||||
#define mips_set_sr( _x ) \
|
||||
do { \
|
||||
unsigned int __x = (_x); \
|
||||
register unsigned int __x = (_x); \
|
||||
asm volatile( "mtc0 %0, $12; nop" : : "r" (__x) ); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user