summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-22 13:12:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-22 13:12:48 +0000
commit75f2b0b0ef652dfefda489330c09a00601b7c203 (patch)
tree157656fdb8c0caba975de44794dce2205c6f02a0
parentRenaming all BSP specific startXXX directories to use the same name (start). (diff)
downloadrtems-75f2b0b0ef652dfefda489330c09a00601b7c203.tar.bz2
Small patch (rtems-rc-19991117-5.diff) from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> to correct the constraints on the inline assembly language macro for sh_disable_interrupt.
-rw-r--r--c/src/exec/score/cpu/sh/rtems/score/sh.h2
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/sh/rtems/score/sh.h b/c/src/exec/score/cpu/sh/rtems/score/sh.h
index f09d1d66c2..4417e6a99d 100644
--- a/c/src/exec/score/cpu/sh/rtems/score/sh.h
+++ b/c/src/exec/score/cpu/sh/rtems/score/sh.h
@@ -77,7 +77,7 @@ extern "C" {
asm volatile ( \
"stc sr,%0\n\t" \
"ldc %1,sr\n\t"\
- : "=r" (_level ) \
+ : "=&r" (_level ) \
: "r" (SH_IRQDIS_VALUE) );
#define sh_enable_interrupts( _level ) \
diff --git a/cpukit/score/cpu/sh/rtems/score/sh.h b/cpukit/score/cpu/sh/rtems/score/sh.h
index f09d1d66c2..4417e6a99d 100644
--- a/cpukit/score/cpu/sh/rtems/score/sh.h
+++ b/cpukit/score/cpu/sh/rtems/score/sh.h
@@ -77,7 +77,7 @@ extern "C" {
asm volatile ( \
"stc sr,%0\n\t" \
"ldc %1,sr\n\t"\
- : "=r" (_level ) \
+ : "=&r" (_level ) \
: "r" (SH_IRQDIS_VALUE) );
#define sh_enable_interrupts( _level ) \