[ECOS] Still on ethernet configuration
Cristiano Pereira
ligieri2002@hotmail.com
Wed Oct 16 11:33:00 GMT 2002
Done. Now I'm using the latest CVS version. The problem persists unchanged.
How will the "bt" command tell me whether the stack is corrupted or not?
Sometimes I have the impression that things are getting executed twice when
I'm debugging. Look at this example:
Breakpoint 1, i82559_configure (p_i82559=0xc006994c, promisc=0, oversized=1,
multicast_all=0)
at
/opt/ecoscvs.10-13-2002/ecos/packages/devs/eth/intel/i82559/current/src/if_i82559.c:3180
3180 OUTL(VIRT_TO_BUS(p_i82559->rx_ring[0]), ioaddr + SCBPointer);
(gdb) n
340 HAL_WRITE_UINT16( io_address, (((value & 0xff) << 8) | ((value &
0xff00) >> 8)) );
(gdb) n
3183 return 0;
(gdb) s
3180 OUTL(VIRT_TO_BUS(p_i82559->rx_ring[0]), ioaddr + SCBPointer);
(gdb) s
345 HAL_WRITE_UINT32( io_address,
(gdb) s
340 HAL_WRITE_UINT16( io_address, (((value & 0xff) << 8) | ((value &
0xff00) >> 8)) );
(gdb) s
3183 return 0;
(gdb) bt
#0 i82559_configure (p_i82559=0xc006994c, promisc=393216, oversized=1,
multicast_all=0)
at
/opt/ecoscvs.10-13-2002/ecos/packages/devs/eth/intel/i82559/current/src/if_i82559.c:3183
#1 0xc0021594 in i82559_start (sc=0xc0069fd4, enaddr=0xc50600 "",
flags=-1073298004)
at
/opt/ecoscvs.10-13-2002/ecos/packages/devs/eth/intel/i82559/current/src/if_i82559.c:1619
#2 0xc011baf8 in stack ()
(gdb) s
I set a breakpoint in the function i82559_configure at line 3180. When
I step through it it seems to execute statements 3180 and 3183 twice.
Am I missing something silly or this is some sort of weird behavior
(I'm not very used to debug things using GDB so the question might be
silly)?
I'm also issuing the "bt" command but honestly I don't see how it tells me
whether the stack is good or not. After the last "s" command
the program never returns.
Cristiano.
>Absolutely. If you have problems, we (the eCos community) can really
>only help if you're running [at least close to] the sources we are
>using.
_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.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