mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 21:53:44 +00:00
s390/mm: Convert to use flag output macros
Use flag output macros in inline asm to allow for better code generation if the compiler has support for the flag output constraint. Reviewed-by: Juergen Christ <jchrist@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
fbe057e874
commit
9ce8bc0cb4
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <linux/const.h>
|
#include <linux/const.h>
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
#include <asm/asm.h>
|
||||||
|
|
||||||
#define _PAGE_SHIFT CONFIG_PAGE_SHIFT
|
#define _PAGE_SHIFT CONFIG_PAGE_SHIFT
|
||||||
#define _PAGE_SIZE (_AC(1, UL) << _PAGE_SHIFT)
|
#define _PAGE_SIZE (_AC(1, UL) << _PAGE_SHIFT)
|
||||||
@ -148,11 +149,12 @@ static inline int page_reset_referenced(unsigned long addr)
|
|||||||
int cc;
|
int cc;
|
||||||
|
|
||||||
asm volatile(
|
asm volatile(
|
||||||
" rrbe 0,%1\n"
|
" rrbe 0,%[addr]\n"
|
||||||
" ipm %0\n"
|
CC_IPM(cc)
|
||||||
" srl %0,28\n"
|
: CC_OUT(cc, cc)
|
||||||
: "=d" (cc) : "a" (addr) : "cc");
|
: [addr] "a" (addr)
|
||||||
return cc;
|
: CC_CLOBBER);
|
||||||
|
return CC_TRANSFORM(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bits int the storage key */
|
/* Bits int the storage key */
|
||||||
|
Loading…
Reference in New Issue
Block a user