PPC: E500: Calculate loading blob offsets properly
commit528e536ea2fd3bfe8412e39a5623e80b254f3ae0
authorAlexander Graf <agraf@suse.de>
Mon, 14 Jan 2013 19:24:16 +0000 (14 20:24 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 18 Jan 2013 18:06:57 +0000 (18 19:06 +0100)
tree03f3d8bfcc2ef7db97b573865f3f1a8814b3d402
parent86e56a885aa5051c87906dfcd060c59f0af22309
PPC: E500: Calculate loading blob offsets properly

We have 3 blobs we need to load when booting the system:

  - kernel
  - initrd
  - dtb

We place them in physical memory in that order. At least we should.
This patch fixes the location calculation up to take any module into
account, fixing the dtb offset along the way.

Reported-by: Stuart Yoder <stuart.yoder@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500.c