Commit 7c496e66 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/mm: use call_on_stack() macro

Reviewed-by: default avatarSven Schnelle <svens@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 41d71fe5
...@@ -125,12 +125,18 @@ static unsigned long __no_sanitize_address _memcpy_real(unsigned long dest, ...@@ -125,12 +125,18 @@ static unsigned long __no_sanitize_address _memcpy_real(unsigned long dest,
*/ */
int memcpy_real(void *dest, void *src, size_t count) int memcpy_real(void *dest, void *src, size_t count)
{ {
unsigned long _dest = (unsigned long)dest;
unsigned long _src = (unsigned long)src;
unsigned long _count = (unsigned long)count;
int rc; int rc;
if (S390_lowcore.nodat_stack != 0) { if (S390_lowcore.nodat_stack != 0) {
preempt_disable(); preempt_disable();
rc = CALL_ON_STACK(_memcpy_real, S390_lowcore.nodat_stack, 3, rc = call_on_stack(3, S390_lowcore.nodat_stack,
dest, src, count); unsigned long, _memcpy_real,
unsigned long, _dest,
unsigned long, _src,
unsigned long, _count);
preempt_enable(); preempt_enable();
return rc; return rc;
} }
...@@ -139,8 +145,7 @@ int memcpy_real(void *dest, void *src, size_t count) ...@@ -139,8 +145,7 @@ int memcpy_real(void *dest, void *src, size_t count)
* not set up yet. Just call _memcpy_real on the early boot * not set up yet. Just call _memcpy_real on the early boot
* stack * stack
*/ */
return _memcpy_real((unsigned long) dest,(unsigned long) src, return _memcpy_real(_dest, _src, _count);
(unsigned long) count);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment