summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:04:27 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:04:27 +0000
commit5bd82c52e3b9518789ae54b33450546659247912 (patch)
tree75a563d2c1b6ee8eba183678e760874840b4dc4b
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-5bd82c52e3b9518789ae54b33450546659247912.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h, include/tm27.h, network/network.c: Use "__asm__" instead of "asm" for improved c99-compliance.
-rw-r--r--c/src/lib/libbsp/i386/i386ex/ChangeLog5
-rw-r--r--c/src/lib/libbsp/i386/i386ex/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/i386/i386ex/include/tm27.h2
-rw-r--r--c/src/lib/libbsp/i386/i386ex/network/network.c2
4 files changed, 8 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/ChangeLog b/c/src/lib/libbsp/i386/i386ex/ChangeLog
index 1ed3b7bc0f..e4f06c89b0 100644
--- a/c/src/lib/libbsp/i386/i386ex/ChangeLog
+++ b/c/src/lib/libbsp/i386/i386ex/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * include/bsp.h, include/tm27.h, network/network.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff --git a/c/src/lib/libbsp/i386/i386ex/include/bsp.h b/c/src/lib/libbsp/i386/i386ex/include/bsp.h
index c456b0aea4..6ff3ffa773 100644
--- a/c/src/lib/libbsp/i386/i386ex/include/bsp.h
+++ b/c/src/lib/libbsp/i386/i386ex/include/bsp.h
@@ -39,7 +39,7 @@ extern "C" {
\
_counter = (_microseconds); \
\
- asm volatile ( "0: nop;" \
+ __asm__ volatile ( "0: nop;" \
" mov %0,%0 ;" \
" loop 0b" : "=c" (_counter) \
: "0" (_counter) \
diff --git a/c/src/lib/libbsp/i386/i386ex/include/tm27.h b/c/src/lib/libbsp/i386/i386ex/include/tm27.h
index ab32036e6b..623a045f16 100644
--- a/c/src/lib/libbsp/i386/i386ex/include/tm27.h
+++ b/c/src/lib/libbsp/i386/i386ex/include/tm27.h
@@ -25,7 +25,7 @@
#define Install_tm27_vector(handler)
-#define Cause_tm27_intr() asm volatile( "int $0x90" : : );
+#define Cause_tm27_intr() __asm__ volatile( "int $0x90" : : );
#define Clear_tm27_intr() /* empty */
diff --git a/c/src/lib/libbsp/i386/i386ex/network/network.c b/c/src/lib/libbsp/i386/i386ex/network/network.c
index 3b7899caa1..c12f619c45 100644
--- a/c/src/lib/libbsp/i386/i386ex/network/network.c
+++ b/c/src/lib/libbsp/i386/i386ex/network/network.c
@@ -7,7 +7,7 @@ void dump_scb(void);
void printk_time(void);
#ifdef DBG_VERSION
-#define BREAKPOINT() asm(" int $3");
+#define BREAKPOINT() __asm__ (" int $3");
#else
#define BREAKPOINT()
#endif