From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Gurevich Date: Tue, 11 Mar 2003 19:27:41 -0800 Subject: [U-Boot-Users] {Patch]: A small bug in PCI command Message-ID: <3E6EA92D.7050603@paulidav.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I've just noticed that "pci" command (or pci header) fails to show the device class properly. The problem is that the function pci_classes_str uses an array of pointers to strings to connvert the class and these pointers don't get relocated after u-boot is moved into RAM. Thus they still point to some addresses in FLASH, which is not correct. Is it only my problem or other people have similar experience? We can either do manual relocation (same way how cmd_tbl is relocated in board_init_r()) or replace this table with a (ugly?) switch statement. That's the patch attached. Thanks, Vladimir -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cmd_pci.diff Url: http://lists.denx.de/pipermail/u-boot/attachments/20030311/6e6dd733/attachment.txt