Changeset bd918ff7 in rtems
- Timestamp:
- Feb 11, 2011, 12:19:29 PM (9 years ago)
- Branches:
- 4.11, master
- Children:
- 7922b39c
- Parents:
- bd6cbca3
- Location:
- c/src/lib/libbsp/powerpc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/ChangeLog
rbd6cbca3 rbd918ff7 1 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * shared/console/polled_io.c, shared/flash/spansionFlash.c, 4 shared/startup/bspidle.c, shared/startup/probeMemEnd.c: 5 Use "__asm__" instead of "asm" for improved c99-compliance. 6 1 7 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
c/src/lib/libbsp/powerpc/shared/console/polled_io.c
rbd6cbca3 rbd918ff7 910 910 #define div10(num, rmd) \ 911 911 do { uint32_t t1, t2, t3; \ 912 asm("lis %4,0xcccd; " \912 __asm__ ("lis %4,0xcccd; " \ 913 913 "addi %4,%4,0xffffcccd; " /* Build 0xcccccccd */ \ 914 914 "mulhwu %3,%0+1,%4; " /* (num.l*cst.l).h */ \ -
c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c
rbd6cbca3 rbd918ff7 78 78 79 79 #ifdef __PPC__ 80 #define IOSYNC(mem) do { asmvolatile("eieio"); } while (0)80 #define IOSYNC(mem) do { __asm__ volatile("eieio"); } while (0) 81 81 #else 82 82 #define IOSYNC(mem) do { } while (0) -
c/src/lib/libbsp/powerpc/shared/startup/bspidle.c
rbd6cbca3 rbd918ff7 28 28 { 29 29 for( ; ; ) { 30 asmvolatile(30 __asm__ volatile( 31 31 "mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0" 32 32 ); -
c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c
rbd6cbca3 rbd918ff7 124 124 if ( _read_MSR() & MSR_VE ) { 125 125 #define DSSALL 0x7e00066c /* dssall opcode */ 126 asmvolatile(" .long %0"::"i"(DSSALL));126 __asm__ volatile(" .long %0"::"i"(DSSALL)); 127 127 #undef DSSALL 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.