mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
s390/pageattr: 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
eade39cc72
commit
34c4812366
|
|
@ -12,6 +12,7 @@
|
|||
#include <asm/pgalloc.h>
|
||||
#include <asm/kfence.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/asm.h>
|
||||
#include <asm/set_memory.h>
|
||||
|
||||
static inline unsigned long sske_frame(unsigned long addr, unsigned char skey)
|
||||
|
|
@ -414,11 +415,11 @@ bool kernel_page_present(struct page *page)
|
|||
addr = (unsigned long)page_address(page);
|
||||
asm volatile(
|
||||
" lra %[addr],0(%[addr])\n"
|
||||
" ipm %[cc]\n"
|
||||
: [cc] "=d" (cc), [addr] "+a" (addr)
|
||||
CC_IPM(cc)
|
||||
: CC_OUT(cc, cc), [addr] "+a" (addr)
|
||||
:
|
||||
: "cc");
|
||||
return (cc >> 28) == 0;
|
||||
: CC_CLOBBER);
|
||||
return CC_TRANSFORM(cc) == 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_KFENCE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user