s390/kexec_file: Simplify parmarea access

Access the parmarea in head.S via a struct instead of individual offsets.

While at it make the fields in the parmarea .quads.

Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Philipp Rudo
2019-03-06 17:36:26 +01:00
committed by Martin Schwidefsky
parent 4c0f032d49
commit d0d249d75d
6 changed files with 28 additions and 25 deletions

View File

@@ -32,6 +32,7 @@ static int kexec_file_add_image_kernel(struct kimage *image,
ret = kexec_add_buffer(&buf);
data->kernel_buf = kernel;
data->parm = (void *)kernel + PARMAREA;
data->memsz += buf.memsz + STARTUP_NORMAL_OFFSET;
return ret;