From a42d8b00fe65a26d923c3bf1429252ee8f1405a0 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 12:46:34 +0000 Subject: =?UTF-8?q?2011-02-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * console/console.c, irq/irq.c: Use "__asm__" instead of "asm" for improved c99-compliance. --- c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog | 5 +++++ c/src/lib/libbsp/powerpc/mbx8xx/console/console.c | 8 ++++---- c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp/powerpc') diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog index fb977bb051..14c8855c68 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog @@ -1,3 +1,8 @@ +2011-02-11 Ralf Corsépius + + * console/console.c, irq/irq.c: + Use "__asm__" instead of "asm" for improved c99-compliance. + 2011-02-02 Ralf Corsépius * configure.ac: Require autoconf-2.68, automake-1.11.1. diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c index 0b777b0673..0639436c58 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c @@ -174,7 +174,7 @@ static int _EPPCBug_pollRead( simask = m8xx.simask; /* Check for a char in the input FIFO using .CIO_STAT */ - asm volatile( "li 10,0x202\n\ + __asm__ volatile( "li 10,0x202\n\ mr 3, %0\n\ mr 4, %1\n\ sc" @@ -186,7 +186,7 @@ static int _EPPCBug_pollRead( input_params.inbuf = &c; input_params.nbytes_requested = 1; - asm volatile( "li 10,0x200 /* Code for .CIO_READ */\n\ + __asm__ volatile( "li 10,0x200 /* Code for .CIO_READ */\n\ mr 3, %0 /* Address of input_params */\n\ mr 4, %1 /* Address of output_params */\n\ sc" /* Call EPPCBUG */ @@ -284,7 +284,7 @@ static ssize_t _EPPCBug_pollWrite( /* Wait for space in the output buffer */ do { /* Check for space in the output FIFO */ - asm volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\ + __asm__ volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\ mr 3, %0 /* Address of input_params */\n\ mr 4, %1 /* Address of output_params */\n\ sc" /* Call EPPCBUG */ @@ -298,7 +298,7 @@ static ssize_t _EPPCBug_pollWrite( input_params.outbuf = &buf[i]; input_params.nbytes_to_output = len - i; - asm volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\ + __asm__ volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\ mr 3, %0 /* Address of input_params */\n\ mr 4, %1 /* Address of output_params */\n\ sc" /* Call EPPCBUG */ diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c index b2cb7d72f0..f3a32ef668 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c @@ -222,7 +222,7 @@ int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum) * make sure, that the masking operations in * ICTL and MSR are executed in order */ - asm volatile("sync":::"memory"); + __asm__ volatile("sync":::"memory"); _CPU_MSR_GET(msr); new_msr = msr | MSR_EE; @@ -236,7 +236,7 @@ int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum) * make sure, that the masking operations in * ICTL and MSR are executed in order */ - asm volatile("sync":::"memory"); + __asm__ volatile("sync":::"memory"); if (cpmIntr) { irq -= BSP_CPM_IRQ_LOWEST_OFFSET; -- cgit v1.2.3