Kernel: Cleanup constructor calls

This commit is contained in:
2024-08-31 02:23:08 +03:00
parent 2ae2ede0b2
commit ddf1babfe1
8 changed files with 18 additions and 40 deletions

View File

@@ -216,12 +216,11 @@ higher_half:
# call global constuctors
call _init
movq $__init_array_start, %rbx
movq $g_init_array_start, %rbx
jmp 2f
1: movq (%rbx), %rax
call *%rax
1: call *(%rbx)
addq $8, %rbx
2: cmpq $__init_array_end, %rbx
2: cmpq $g_init_array_end, %rbx
jne 1b
# call to the kernel itself (clear rbp for stacktrace)