diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-01 23:09:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-01 23:09:09 +0000 |
commit | 4f38ab058ed5f75aff11c3e3c9e974ebb0dfa17a (patch) | |
tree | fdb3d36f62e7cc1aab6a7ce1e5d94fc62b02fa42 /c/src/lib/libbsp/m68k/mvme167/console | |
parent | 2002-04-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-4f38ab058ed5f75aff11c3e3c9e974ebb0dfa17a.tar.bz2 |
2002-05-01 Eric Norum <eric.norum@usask.ca>
* console/console.c, fatal/bspfatal.c, startup/bspclean.c,
startup/page_table.c: Per PR200 fix multi-line inline assembly
to satisfy gcc 3.1 and newer.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme167/console')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme167/console/console.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console.c b/c/src/lib/libbsp/m68k/mvme167/console/console.c index f7a7935667..90da9ebed5 100644 --- a/c/src/lib/libbsp/m68k/mvme167/console/console.c +++ b/c/src/lib/libbsp/m68k/mvme167/console/console.c @@ -1297,13 +1297,13 @@ int _167Bug_pollRead( */ rtems_interrupt_disable( previous_level ); - asm volatile( "movew %1, -(%%sp) /* Channel */ - trap #15 /* Trap to 167Bug */ - .short 0x61 /* Code for .REDIR_I */ - trap #15 /* Trap to 167Bug */ - .short 0x01 /* Code for .INSTAT */ - move %%cc, %0 /* Get condition codes */ - andil #4, %0" /* Keep the Zero bit */ + asm volatile( "movew %1, -(%%sp)\n\t"/* Channel */ + "trap #15\n\t" /* Trap to 167Bug */ + ".short 0x61\n\t" /* Code for .REDIR_I */ + "trap #15\n\t" /* Trap to 167Bug */ + ".short 0x01\n\t" /* Code for .INSTAT */ + "move %%cc, %0\n\t" /* Get condition codes */ + "andil #4, %0" /* Keep the Zero bit */ : "=d" (char_not_available) : "d" (minor): "%%cc" ); if (char_not_available) { @@ -1312,10 +1312,10 @@ int _167Bug_pollRead( } /* Read the char and return it */ - asm volatile( "subq.l #2,%%a7 /* Space for result */ - trap #15 /* Trap to 167 Bug */ - .short 0x00 /* Code for .INCHR */ - moveb (%%a7)+, %0" /* Pop char into c */ + asm volatile( "subq.l #2,%%a7\n\t" /* Space for result */ + "trap #15\n\t" /* Trap to 167 Bug */ + ".short 0x00\n\t" /* Code for .INCHR */ + "moveb (%%a7)+, %0" /* Pop char into c */ : "=d" (c) : ); rtems_interrupt_enable( previous_level ); @@ -1349,12 +1349,12 @@ int _167Bug_pollWrite( { const char *endbuf = buf + len; - asm volatile( "pea (%0) /* endbuf */ - pea (%1) /* buf */ - movew #0x21, -(%%sp) /* Code for .OUTSTR */ - movew %2, -(%%sp) /* Channel */ - trap #15 /* Trap to 167Bug */ - .short 0x60" /* Code for .REDIR */ + asm volatile( "pea (%0)\n\t" /* endbuf */ + "pea (%1)\n\t" /* buf */ + "movew #0x21, -(%%sp)\n\t" /* Code for .OUTSTR */ + "movew %2, -(%%sp)\n\t" /* Channel */ + "trap #15\n\t" /* Trap to 167Bug */ + ".short 0x60" /* Code for .REDIR */ :: "a" (endbuf), "a" (buf), "d" (minor) ); /* Return something */ |