提交 3b0b4af2 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] Simplify virt_to_phys.

No need to use lrag in 64 bit addressing mode since lra will do the
same.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 32c5b050
......@@ -28,11 +28,7 @@ static inline unsigned long virt_to_phys(volatile void * address)
{
unsigned long real_address;
asm volatile(
#ifndef __s390x__
" lra %0,0(%1)\n"
#else /* __s390x__ */
" lrag %0,0(%1)\n"
#endif /* __s390x__ */
" jz 0f\n"
" la %0,0\n"
"0:"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册