summaryrefslogtreecommitdiff
path: root/kexec/fs2dt.c
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>2014-02-09 22:24:59 +0530
committerSimon Horman <horms@verge.net.au>2014-05-15 13:42:21 +0900
commitd8847573a40fc00442fd727c4906b5b619fa5e1f (patch)
treef1a194bbbd02340ef06e820d502dabab16763f1a /kexec/fs2dt.c
parente7c0f537f725272543561c781f699d8048f29c19 (diff)
kexec/ppc64: Fix up ELF header and dt for PowerNV platform.
On PowerNV platform, OPAL region is overlapped with crashkernel, need to create ELF Program header for the overlapped memory. The changes are similar to the way RTAS region was handled. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/fs2dt.c')
-rw-r--r--kexec/fs2dt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kexec/fs2dt.c b/kexec/fs2dt.c
index 2a90979..1e5f074 100644
--- a/kexec/fs2dt.c
+++ b/kexec/fs2dt.c
@@ -113,6 +113,10 @@ static void checkprop(char *name, unsigned *data, int len)
die("unrecoverable error: no property data");
else if (!strcmp(name, "linux,rtas-base"))
base = be32_to_cpu(*data);
+ else if (!strcmp(name, "opal-base-address"))
+ base = be64_to_cpu(*(unsigned long long *)data);
+ else if (!strcmp(name, "opal-runtime-size"))
+ size = be64_to_cpu(*(unsigned long long *)data);
else if (!strcmp(name, "linux,tce-base"))
base = be64_to_cpu(*(unsigned long long *) data);
else if (!strcmp(name, "rtas-size") ||