Skip to contentSkip to conversation

a problem of rtl8019.c

U-Boot-Users buaafree 1 participant 1 message Jun 20, 2007

lore
Share & tools
lore

buaafree

author
#0 lore raw

Hi,all
I have a board with cpu-s3c2410,eth controller-realtek8019as.I found the function nic_to_pc() in ~/u-boot-1.2.0/drivers/rtl8019.c with a mistake.If using the following way

    rec_head_status = get_reg (RTL8019_DMA_DATA);
    next_packet_pointer = get_reg (RTL8019_DMA_DATA);
    packet_length0 = get_reg (RTL8019_DMA_DATA);
    packet_length1 = get_reg (RTL8019_DMA_DATA);

for reading receive buffer,the four variable of "rec_head_status next_packet_pointer packet_length0 packet_length1" can't get correct value.But if reading the four bytes by using one array to store,it's ok.In other words,it's wrong,if storing every byte in an individual variable.
Who can tell me why?
Thanks!
Darren

buaafree
2007-06-20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070620/dcde68ce/attachment.htm