From 79c0f7dfb063b5d29dc4547d37efbcb86a89fdac Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 21 Feb 2021 13:39:12 +0200 Subject: Call global constructors --- src/boot.s | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/boot.s') diff --git a/src/boot.s b/src/boot.s index bb446d8..2286152 100644 --- a/src/boot.s +++ b/src/boot.s @@ -41,6 +41,8 @@ stack_top: bootloader will jump to this position once the kernel has been loaded. */ .section .text +.extern kernel_constructors +.extern kernel_main .global _start .type _start, @function _start: @@ -59,6 +61,7 @@ _start: pushl %ebx # push the pointer to the multiboot structure pushl %eax # push the multiboot magic value + call kernel_constructors /* Enter the high-level kernel. The ABI requires the stack is 16-byte -- cgit v1.2.1