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:
Joel Sherrill
2001-01-12 13:36:30 +00:00
parent d9f61654c7
commit 9c1dc8cd2a
4 changed files with 14 additions and 4 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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)