summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mpc8260ads
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:48:37 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:48:37 +0000
commiteb0103f3d076f837363fc82f9442990fa427c48b (patch)
treefb852c93d565842559ef1b9136864a5dd4129217 /c/src/lib/libbsp/powerpc/mpc8260ads
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-eb0103f3d076f837363fc82f9442990fa427c48b.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/tm27.h, irq/irq.c: Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads')
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h2
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c4
3 files changed, 8 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
index 9e8f28795c..6b676c4ea8 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * include/tm27.h, irq/irq.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h b/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h
index 60f3b6108d..38ba12a8d9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h
@@ -35,7 +35,7 @@
BSP_install_rtems_irq_handler (&scIrqData); \
} while(0)
-#define Cause_tm27_intr() asm volatile ("sc")
+#define Cause_tm27_intr() __asm__ volatile ("sc")
#define Clear_tm27_intr() /* empty */
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
index b6fdb134eb..9ba682faf4 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
@@ -278,7 +278,7 @@ int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned excNum)
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
/* re-enable external exceptions */
_CPU_MSR_GET(msr);
@@ -295,7 +295,7 @@ int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned excNum)
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
/* restore interrupt masks */
m8260.simr_h = old_simr_h;