Kernel: Cleanup constructor calls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user