diff options
author | Richard Weinberger <richard@nod.at> | 2015-10-26 12:38:27 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-11-07 00:49:11 +0300 |
commit | 1b2411c283e8e178b1c57d07f7fe082442a0927b (patch) | |
tree | 0bd1a7bbd2510730f896c48e43b2005fe26d9287 /arch/x86/um/stub_64.S | |
parent | 246d254f1ab62bc83ac84a8ebd263e5384412ce8 (diff) | |
download | linux-1b2411c283e8e178b1c57d07f7fe082442a0927b.tar.xz |
um: Simplify STUB_DATA loading
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>
Diffstat (limited to 'arch/x86/um/stub_64.S')
-rw-r--r-- | arch/x86/um/stub_64.S | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/um/stub_64.S b/arch/x86/um/stub_64.S index a212445358d6..ba914b3b8cc4 100644 --- a/arch/x86/um/stub_64.S +++ b/arch/x86/um/stub_64.S @@ -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 |