Multiple PowerPC BSP build failures

2014-12-30 Thread Joel Sherrill
Hi

Checking the head of gcc, binutils, and newlib, a lot of PowerPC BSPs
end with an error. This is from the icecube. There are lots of Any ideas
on how to
fix this?

powerpc-rtems4.11-gcc --pipe -B../../../../.././lib/
-B../../../../.././icecube/lib/ -specs bsp_specs -qrtems
-DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-powerpc\"
-DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"
-DPACKAGE_VERSION=\"4.10.99.0\"
-DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.10.99.0\"
-DPACKAGE_BUGREPORT=\"https://devel.rtems.org/newticket\";
-DPACKAGE_URL=\"\" -I.
-I../../../../../../../rtems/c/src/lib/libcpu/powerpc  -isystem
../../../../.././icecube/lib/include   -mcpu=603e -mstrict-align -meabi
-msdata=sysv -fno-common -O2 -g -fno-keep-inline-functions -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs -MT mpc6xx/mmu/mpc6xx_mmu_rel-bat.o -MD -MP -MF
mpc6xx/mmu/.deps/mpc6xx_mmu_rel-bat.Tpo -c -o
mpc6xx/mmu/mpc6xx_mmu_rel-bat.o `test -f 'mpc6xx/mmu/bat.c' || echo
'../../../../../../../rtems/c/src/lib/libcpu/powerpc/'`mpc6xx/mmu/bat.c
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:62:36:
error: '#' is not followed by a macro parameter
 #define SETBAT_ASM(batu, batl, u, l)\
^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat0':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:100:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat0, DBAT0)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat1':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:101:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat1, DBAT1)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat2':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:102:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat2, DBAT2)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat3':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:103:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat3, DBAT3)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat4':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:105:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat4, DBAT4)
^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat5':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:106:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat5, DBAT5)
^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat6':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:107:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat6, DBAT6)
^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat7':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:108:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat7, DBAT7)
^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat0':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:110:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat0, IBAT0)
^
../../../../../../

Moxie BSP Build Failure

2014-12-30 Thread Joel Sherrill
Hi

This is with the binutils and gcc heads.

moxie-rtems4.11-gcc --pipe -B../../../../../.././lib/
-B../../../../../.././moxiesim/lib/ -specs bsp_specs -qrtems
-DHAVE_CONFIG_H   -isystem ../../../../../.././moxiesim/lib/include 
-DASM -Os -g -ffunction-sections -fdata-sections -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs -MT start.o -MD -MP -MF .deps/start.Tpo -c -o start.o
`test -f 'start/start.S' || echo
'../../../../../../../../rtems/c/src/lib/libbsp/moxie/moxiesim/'`start/start.S
../../../../../../../../rtems/c/src/lib/libbsp/moxie/moxiesim/start/start.S:
Assembler messages:
../../../../../../../../rtems/c/src/lib/libbsp/moxie/moxiesim/start/start.S:15:
Error: unknown opcode sub.l $r2,$r0

-- 
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherr...@oarcorp.comOn-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available(256) 722-9985

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


problems with using libi2c framework to develop i2c driver for M24C08

2014-12-30 Thread Tom
Hi, everybody
 
I am trying to write driver for an I2C eeprom, m24c08. 
 
The problem is that the 7bit eeprom i2c slave address will vary according to 
address I am trying to access.
7bit i2c address consist of 4bit device type, 1bit eeprom pin status, 2bit the 
MSB of the address of eeprom
 
but in libi2c framework, the address is contained in minor, which is constant.
 
 
regards___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel