[ECOS] Redboot Ethernet Driver Functions

Erik Reikes ereikes@hotmail.com
Wed Mar 6 15:14:00 GMT 2002


Scratch the following potion of my question.  RTFM or in this case RTFMLA 
where MLA stands for Mailing List Archives.

>On a side not my compile of ecos with the FEC ethernet driver and common
>ethernet support fails thusly :
>
>/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:
>In function `fec_eth_init':
>/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260:
>warning: asm operand 0 probably doesn't match constraints
>/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260:
>invalid lvalue in assignment
>/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:191:
>warning: `proc_rev' might be used uninitialized in this function
>/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260:
>inconsistent operand constraints in an `asm'
>make[1]: *** [src/if_fec.o.d] Error 1
>
>line 260 of if_fec.c looks like :
>CYGARC_MFSPR( proc_rev, CYGARC_REG_PVR );
>
>and CYGARC_MFSPR from ppc_regs.h looks like :
>#define CYGARC_MFSPR(_spr_, _v_) \
>    asm volatile ("mfspr %0, %1;" : "=r" (_v_) : "I" (_spr_));
>
>I guess its that =r that's fouling things.
>
>Thanks.
>
>-Erik Reikes


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list