diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-08 21:02:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-08 21:02:20 +0000 |
commit | a4dc7e0563eede1a4ec8f492fe14cac7a92ed6c3 (patch) | |
tree | f32b5f26cdf4221180e0dcc717e8c957394f160e /c/src/lib/libcpu/i386 | |
parent | Added F_GETFL support so the fdopen() implementation in newlib 1.8.1 (diff) | |
download | rtems-a4dc7e0563eede1a4ec8f492fe14cac7a92ed6c3.tar.bz2 |
Patch from Ian Lance Taylor <ian@airs.com> to correct previous interrupt
patch.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/i386/cpu.h | 5 |
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)) \ ); \ } |