
Wolfgang Denk wrote:
Dear Michael Schwingen,
In message 4D45EA43.3070108@discworld.dascon.de you wrote:
The system hangs during early init, and does not get past relocation.
That is to be expected when you use this before relocation. Don't do that, then.
If I interpret the code correct, the PCI code is called from board_init_r on PowerPC platforms.
So what? board_init_r() is (quoting the comment) "the next part if the initialization sequence: we are now running from RAM and have a "normal" C environment, i. e. global data can be written, BSS has been cleared, the stack size in not that critical any more, etc."
So it's perfectly safe and clean to run pci_init() there.
I know - I only wanted to point at the differences: the problem is that the ARM code does it before relocation currently, and I was trying to understand why.
cu Michael