um: Simplify STUB_DATA loading
authorRichard Weinberger <richard@nod.at>
Mon, 26 Oct 2015 09:38:27 +0000 (10:38 +0100)
committerRichard Weinberger <richard@nod.at>
Fri, 6 Nov 2015 21:49:11 +0000 (22:49 +0100)
As long STUB_DATA fits into 32bits we can use a plain mov.
If it will grow at some point in future we will switch to movabsq.
In any case the code is smaller and more easy to read
than the current one

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/stub_64.S

index a212445358d6b64a9b80b68cd774e47673408e85..ba914b3b8cc4d960203ba3a038afbeb00cab0d1d 100644 (file)
@@ -3,10 +3,7 @@
 .section .__syscall_stub, "ax"
        .globl batch_syscall_stub
 batch_syscall_stub:
-       mov     $(STUB_DATA >> 32), %rbx
-       sal     $32, %rbx
-       mov     $(STUB_DATA & 0xffffffff), %rax
-       or      %rax, %rbx
+       mov     $(STUB_DATA), %rbx
        /* load pointer to first operation */
        mov     %rbx, %rsp
        add     $0x10, %rsp