Commit 2bd67038 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/mm,pages-states: get rid of register asm

There is no reason to use fixed registers for the essa
instruction. Therefore remove the register asm construct.
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 7e86f967
...@@ -31,17 +31,17 @@ __setup("cmma=", cmma); ...@@ -31,17 +31,17 @@ __setup("cmma=", cmma);
static inline int cmma_test_essa(void) static inline int cmma_test_essa(void)
{ {
register unsigned long tmp asm("0") = 0; unsigned long tmp = 0;
register int rc asm("1"); int rc = -EOPNOTSUPP;
/* test ESSA_GET_STATE */ /* test ESSA_GET_STATE */
asm volatile( asm volatile(
" .insn rrf,0xb9ab0000,%1,%1,%2,0\n" " .insn rrf,0xb9ab0000,%[tmp],%[tmp],%[cmd],0\n"
"0: la %0,0\n" "0: la %[rc],0\n"
"1:\n" "1:\n"
EX_TABLE(0b,1b) EX_TABLE(0b,1b)
: "=&d" (rc), "+&d" (tmp) : [rc] "+&d" (rc), [tmp] "+&d" (tmp)
: "i" (ESSA_GET_STATE), "0" (-EOPNOTSUPP)); : [cmd] "i" (ESSA_GET_STATE));
return rc; return rc;
} }
......
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