Jiri Gaisler jiri at gaisler.com
Wed Apr 2 12:16:06 UTC 2008


The rhine driver might need to call ip_align to align the
IP header on word boundaries. See how this is done in the
sonic driver. SPARC (and ARM) cannot handle unaligned loads.
The ARM port has a number of #ifdef's in the networking
code to handle this, while SPARC does the alignment in
the driver. Difficult to say which is best ...

Jiri.

fall4ufeng wrote:
>  
> hi,all:
>       i am trying to make an rhine netcard work on an leon2 board.it 
> goes wrong when the netcard receives packets , i found this happed when 
> it called ether_input( ).
>       the following is what i see in the gdb :
>  
> Program received signal SIGSEGV, Segmentation fault.
> ip_input (m=0x47f36700)
>     at ../../../../arc810/lib/include/machine/in_cksum.h:173
> 173        __asm__ volatile (" \
> (gdb) bt
> #0  ip_input (m=0x47f36700)
>     at ../../../../arc810/lib/include/machine/in_cksum.h:173
> #1  0x4000bf50 in ipintr ()
>     at 
> ../../../../../../rtems-4.6.6-1.0.0/cpukit/libnetworking/netinet/ip_input.c:595
> #2  0x40018730 in networkDaemon (task_argument=0x0)
>     at 
> ../../../../../../rtems-4.6.6-1.0.0/cpukit/libnetworking/rtems/rtems_glue.c:526
>  
> anyone can give some advices ?thanks
> 2008-04-02
> ------------------------------------------------------------------------
> fall4ufeng
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users



More information about the users mailing list