aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/purgatory
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-09-14 17:35:46 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-09-20 13:20:29 +0200
commit4e62d458850069c9f05e03f99be1a817967e201f (patch)
tree36930d2ada8892e0b888c1cddcf9cba830b36c33 /arch/s390/purgatory
parents390/vdso: correct CFI annotations of vDSO functions (diff)
downloadlinux-dev-4e62d458850069c9f05e03f99be1a817967e201f.tar.xz
linux-dev-4e62d458850069c9f05e03f99be1a817967e201f.zip
s390: clean up stacks setup
Replace hard coded stack frame overhead values with STACK_FRAME_OVERHEAD definition. Avoid unnecessary arithmetic instructions. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/purgatory')
-rw-r--r--arch/s390/purgatory/head.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/purgatory/head.S b/arch/s390/purgatory/head.S
index 2e3707b12edd..5a10ce34b95d 100644
--- a/arch/s390/purgatory/head.S
+++ b/arch/s390/purgatory/head.S
@@ -11,6 +11,7 @@
#include <asm/asm-offsets.h>
#include <asm/page.h>
#include <asm/sigp.h>
+#include <asm/ptrace.h>
/* The purgatory is the code running between two kernels. It's main purpose
* is to verify that the next kernel was not corrupted after load and to
@@ -88,8 +89,7 @@ ENTRY(purgatory_start)
.base_crash:
/* Setup stack */
- larl %r15,purgatory_end
- aghi %r15,-160
+ larl %r15,purgatory_end-STACK_FRAME_OVERHEAD
/* If the next kernel is KEXEC_TYPE_CRASH the purgatory is called
* directly with a flag passed in %r2 whether the purgatory shall do