diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-11-14 10:37:45 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-11-16 15:21:01 +0900 |
commit | 6e18330303b0dbe5e3470aad13a7dfa6f866bdf1 (patch) | |
tree | 714a29b69063200fd3ad6cc4261b6a79e2158ae1 | |
parent | 24589ab035ffbb0140b9b05f542ded8bc931de95 (diff) |
s390: set KEXEC_ARCH_S390 in arch_compat_trampoline
Set KEXEC_ARCH_S390 in order to make sure that kexec works also in compat
mode on s390.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Extra Information from Eric Biederman
If you call sys_kexec_load in compat mode, you are required to pass
the architecture your kernel is actually running. The kexec kernel
code only supports one switching to one mode. So a 32bit user space
must be prepared to accept a 64bit handoff. The flag reports
that you can do that.
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-Off-By: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/s390/kexec-s390.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/arch/s390/kexec-s390.c b/kexec/arch/s390/kexec-s390.c index b778620..a7ef71c 100644 --- a/kexec/arch/s390/kexec-s390.c +++ b/kexec/arch/s390/kexec-s390.c @@ -96,6 +96,7 @@ int arch_process_options(int argc, char **argv) int arch_compat_trampoline(struct kexec_info *info) { + info->kexec_flags |= KEXEC_ARCH_S390; return 0; } |