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
movl $__init_array_start, %ebx
movl $g_init_array_start, %ebx
jmp 2f
1: movl (%ebx), %eax
call *%eax
1: call *(%ebx)
addl $4, %ebx
2: cmpl $__init_array_end, %ebx
2: cmpl $g_init_array_end, %ebx
jne 1b
# call to the kernel itself (clear ebp for stacktrace)