Changeset a42d8b0 in rtems
- Timestamp:
- 02/11/11 12:46:34 (13 years ago)
- Branches:
- 4.11, 5, master
- Children:
- d14d339
- Parents:
- 0d01467b
- Location:
- c/src/lib/libbsp/powerpc/mbx8xx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
r0d01467b ra42d8b0 1 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * console/console.c, irq/irq.c: 4 Use "__asm__" instead of "asm" for improved c99-compliance. 5 1 6 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org> 2 7 -
c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
r0d01467b ra42d8b0 175 175 176 176 /* Check for a char in the input FIFO using .CIO_STAT */ 177 asmvolatile( "li 10,0x202\n\177 __asm__ volatile( "li 10,0x202\n\ 178 178 mr 3, %0\n\ 179 179 mr 4, %1\n\ … … 187 187 input_params.nbytes_requested = 1; 188 188 189 asmvolatile( "li 10,0x200 /* Code for .CIO_READ */\n\189 __asm__ volatile( "li 10,0x200 /* Code for .CIO_READ */\n\ 190 190 mr 3, %0 /* Address of input_params */\n\ 191 191 mr 4, %1 /* Address of output_params */\n\ … … 285 285 do { 286 286 /* Check for space in the output FIFO */ 287 asmvolatile( "li 10,0x202 /* Code for .CIO_STAT */\n\287 __asm__ volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\ 288 288 mr 3, %0 /* Address of input_params */\n\ 289 289 mr 4, %1 /* Address of output_params */\n\ … … 299 299 input_params.nbytes_to_output = len - i; 300 300 301 asmvolatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\301 __asm__ volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\ 302 302 mr 3, %0 /* Address of input_params */\n\ 303 303 mr 4, %1 /* Address of output_params */\n\ -
c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
r0d01467b ra42d8b0 223 223 * ICTL and MSR are executed in order 224 224 */ 225 asmvolatile("sync":::"memory");225 __asm__ volatile("sync":::"memory"); 226 226 227 227 _CPU_MSR_GET(msr); … … 237 237 * ICTL and MSR are executed in order 238 238 */ 239 asmvolatile("sync":::"memory");239 __asm__ volatile("sync":::"memory"); 240 240 241 241 if (cpmIntr) {
Note: See TracChangeset
for help on using the changeset viewer.