summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh
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 /cpukit/score/cpu/sh
parentd2a05e767bfa780a691d43f7b53c8bd9df4b39c9 (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.
Diffstat (limited to 'cpukit/score/cpu/sh')
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h2
1 files changed, 1 insertions, 1 deletions
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 ) \