aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot/initialize_runtime.cpp
AgeCommit message (Collapse)AuthorFilesLines
2026-01-16chore: restructure namespacesFelix Morgner1-9/+14
2025-12-29x86_64/boot: fix section assignments in ld scriptFelix Morgner1-10/+1
2025-10-31build: enable lintingFelix Morgner1-2/+2
2025-10-29chore: reformat source codeFelix Morgner1-1/+3
2025-07-24x86_64: implement robust C++ global initializationFelix Morgner1-0/+24
Implement a comprehensive mechanism to ensure correct C++ runtime initialization before the kernel main function is called. This replaces the previous, incomplete reliance on an `_init` function. The new design robustly handles both legacy `.ctors` and modern `.init_array` initialization schemes used by the GNU toolchain. A single C++ function, `invoke_global_constructors`, now iterates through both arrays of function pointers to ensure all types of global initializers are executed.