mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
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.
This commit is contained in:
@@ -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 ) \
|
||||
|
||||
@@ -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 ) \
|
||||
|
||||
Reference in New Issue
Block a user