From mboxrd@z Thu Jan 1 00:00:00 1970 From: buaafree Date: Wed, 20 Jun 2007 17:00:22 +0800 Subject: [U-Boot-Users] a problem of rtl8019.c Message-ID: <200706201700191877530@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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/b207127e/attachment.htm