Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b2411c2 authored by Richard Weinberger's avatar Richard Weinberger
Browse files

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: default avatarRichard Weinberger <richard@nod.at>
parent 246d254f
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -3,10 +3,7 @@
.section .__syscall_stub, "ax"
.section .__syscall_stub, "ax"
	.globl batch_syscall_stub
	.globl batch_syscall_stub
batch_syscall_stub:
batch_syscall_stub:
	mov	$(STUB_DATA >> 32), %rbx
	mov	$(STUB_DATA), %rbx
	sal	$32, %rbx
	mov	$(STUB_DATA & 0xffffffff), %rax
	or	%rax, %rbx
	/* load pointer to first operation */
	/* load pointer to first operation */
	mov	%rbx, %rsp
	mov	%rbx, %rsp
	add	$0x10, %rsp
	add	$0x10, %rsp