This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem While attaching Network interface with Kernel


Harsha Vardhan Reddy Y wrote:
> 
> Hi All,
> 
> We are developing a product , as host processor we have PowerPC MPC555.
> For Network interface we are using CS8900A as the ethernet controller.
> After the driver initialization part, while attaching the interface with
> the kernel (using if_attachsetup() function from if.c file), it is
> failing at malloc() function .
> .
> 
> As inturn debugging it is going to
> Cyg_Mempool_Variable_Implementation::alloc(size) file is mvarimpl.inl
> and is giving cygill at
> dq->prev = dq->next = (struct memdq *)0xd530d53 //magic number.
> 
> On our target board RAM starts at 0x2000000.

It shouldn't deference this address. Instead "dq" is probably wrong. Be
sure to enable assertions in your configuration, and try compiling without
-O2 to get a better base to debug from. Then find out why dq is wrong.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]