diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-21 13:39:12 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-21 13:40:39 +0200 |
commit | 79c0f7dfb063b5d29dc4547d37efbcb86a89fdac (patch) | |
tree | ebbc32b22b31e675ebb5b992a20d569d3bfa8b9e /src/boot.s | |
parent | Add IDT (diff) | |
download | kernel.cpp-79c0f7dfb063b5d29dc4547d37efbcb86a89fdac.tar.xz |
Call global constructors
Diffstat (limited to 'src/boot.s')
-rw-r--r-- | src/boot.s | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |