aboutsummaryrefslogtreecommitdiff
path: root/src/boot.s
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-21 13:39:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-21 13:40:39 +0200
commit79c0f7dfb063b5d29dc4547d37efbcb86a89fdac (patch)
treeebbc32b22b31e675ebb5b992a20d569d3bfa8b9e /src/boot.s
parentAdd IDT (diff)
downloadkernel.cpp-79c0f7dfb063b5d29dc4547d37efbcb86a89fdac.tar.xz
Call global constructors
Diffstat (limited to 'src/boot.s')
-rw-r--r--src/boot.s3
1 files changed, 3 insertions, 0 deletions
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