public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] {Patch]: A small bug in PCI command
@ 2003-03-12  3:27 Vladimir Gurevich
  2003-03-12 19:40 ` [U-Boot-Users] [Patch]: " Vladimir Gurevich
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Gurevich @ 2003-03-12  3:27 UTC (permalink / raw)
  To: u-boot

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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-13  9:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12  3:27 [U-Boot-Users] {Patch]: A small bug in PCI command Vladimir Gurevich
2003-03-12 19:40 ` [U-Boot-Users] [Patch]: " Vladimir Gurevich
2003-03-13  9:43   ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox