Userspace: Remove unnecessary mov instruction from crt0
This commit is contained in:
parent
ddaaf89c87
commit
32ba4d07e2
|
@ -23,8 +23,7 @@ _start:
|
||||||
|
|
||||||
movl $__init_array_start, %ebx
|
movl $__init_array_start, %ebx
|
||||||
jmp 2f
|
jmp 2f
|
||||||
1: movl (%ebx), %eax
|
1: call *(%ebx)
|
||||||
call *%eax
|
|
||||||
addl $4, %ebx
|
addl $4, %ebx
|
||||||
2: cmpl $__init_array_end, %ebx
|
2: cmpl $__init_array_end, %ebx
|
||||||
jne 1b
|
jne 1b
|
||||||
|
|
|
@ -24,8 +24,7 @@ _start:
|
||||||
|
|
||||||
movq $__init_array_start, %rbx
|
movq $__init_array_start, %rbx
|
||||||
jmp 2f
|
jmp 2f
|
||||||
1: movq (%rbx), %rax
|
1: call *(%rbx)
|
||||||
call *%rax
|
|
||||||
addq $8, %rbx
|
addq $8, %rbx
|
||||||
2: cmpq $__init_array_end, %rbx
|
2: cmpq $__init_array_end, %rbx
|
||||||
jne 1b
|
jne 1b
|
||||||
|
|
Loading…
Reference in New Issue