From c38552daa3b9010323635dff335d3b4457725ca4 Mon Sep 17 00:00:00 2001 From: Scott Little <50145141+CodeLongAndProsper90@users.noreply.github.com> Date: Thu, 28 May 2020 14:52:40 -0500 Subject: [PATCH] Add docs. --- init/src/boot_16.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/init/src/boot_16.cpp b/init/src/boot_16.cpp index 01189931..a9430986 100644 --- a/init/src/boot_16.cpp +++ b/init/src/boot_16.cpp @@ -12,12 +12,20 @@ #include "boot_32.hpp" #include "gdt_types.hpp" -void __attribute__ ((noreturn)) rm_main(); -void __attribute__ ((noreturn)) foo(){ rm_main(); } + #include "e820_types.hpp" #include "vesa_types.hpp" #include "early_memory.hpp" +/* +* +* This is required for QEMU boot. +* See https://github.com/wichtounet/thor-os/issues/24 +* +*/ +void __attribute__ ((noreturn)) rm_main(); +void __attribute__ ((noreturn)) foo(){ rm_main(); } + e820::bios_e820_entry bios_e820_entries[e820::MAX_E820_ENTRIES]; gdt::task_state_segment_t tss; // TODO Remove this (causes relocation errors for now)