Userspace: Remove unnecessary mov instruction from crt0

This commit is contained in:
Bananymous 2024-09-05 12:59:05 +03:00
parent ddaaf89c87
commit 32ba4d07e2
2 changed files with 2 additions and 4 deletions

View File

@ -23,8 +23,7 @@ _start:
movl $__init_array_start, %ebx
jmp 2f
1: movl (%ebx), %eax
call *%eax
1: call *(%ebx)
addl $4, %ebx
2: cmpl $__init_array_end, %ebx
jne 1b

View File

@ -24,8 +24,7 @@ _start:
movq $__init_array_start, %rbx
jmp 2f
1: movq (%rbx), %rax
call *%rax
1: call *(%rbx)
addq $8, %rbx
2: cmpq $__init_array_end, %rbx
jne 1b