summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-08 21:02:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-08 21:02:20 +0000
commita4dc7e0563eede1a4ec8f492fe14cac7a92ed6c3 (patch)
treef32b5f26cdf4221180e0dcc717e8c957394f160e
parentAdded F_GETFL support so the fdopen() implementation in newlib 1.8.1 (diff)
downloadrtems-a4dc7e0563eede1a4ec8f492fe14cac7a92ed6c3.tar.bz2
Patch from Ian Lance Taylor <ian@airs.com> to correct previous interrupt
patch.
-rw-r--r--c/src/lib/libcpu/i386/cpu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/i386/cpu.h b/c/src/lib/libcpu/i386/cpu.h
index d080f92cd4..21357afd7e 100644
--- a/c/src/lib/libcpu/i386/cpu.h
+++ b/c/src/lib/libcpu/i386/cpu.h
@@ -32,7 +32,6 @@
#define i386_disable_interrupts( _level ) \
{ \
- _level = 0; /* avoids warnings */ \
asm volatile ( "pushf ; \
cli ; \
pop %0" \
@@ -44,7 +43,7 @@
{ \
asm volatile ( "push %0 ; \
popf" \
- : "=rm" ((_level)) \
+ : : "rm" ((_level)) \
); \
}
@@ -53,7 +52,7 @@
asm volatile ( "push %0 ; \
popf ; \
cli" \
- : "=rm" ((_level)) \
+ : : "rm" ((_level)) \
); \
}