s390/vdso: move vdso mapping to its own function
authorSven Schnelle <svens@linux.ibm.com>
Wed, 6 Apr 2022 06:35:26 +0000 (08:35 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:14 +0000 (13:54 +0200)
commit57761da4dc5cd60bed2c81ba0edb7495c3c740b8
treeabbdfb74d74e91abed372c2ad22f3ca29d7061d2
parentf2f47d0ef72c30622e62471903ea19446ea79ee2
s390/vdso: move vdso mapping to its own function

This is a preparation patch for adding vdso randomization to s390.
It adds a function vdso_size(), which will be used later in calculating
the STACK_TOP value. It also moves the vdso mapping into a new function
vdso_map(), to keep the code similar to other architectures.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/kernel/vdso.c