OSDN Git Service

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