From be5c7e992ef3f7827e7229d77af3f812484de260 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 23 Jul 2025 13:52:28 +0000 Subject: x86_64: extract linker script interface header --- arch/x86_64/include/x86_64/boot/ld.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 arch/x86_64/include/x86_64/boot/ld.hpp (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/x86_64/boot/ld.hpp b/arch/x86_64/include/x86_64/boot/ld.hpp new file mode 100644 index 0000000..e6b397b --- /dev/null +++ b/arch/x86_64/include/x86_64/boot/ld.hpp @@ -0,0 +1,22 @@ +#ifndef TEACHOS_X86_64_BOOT_LD_H +#define TEACHOS_X86_64_BOOT_LD_H + +#include + +extern "C" +{ + namespace teachos::x86_64::boot + { + /** + * @brief The first byte of the loaded kernel image. + */ + extern "C" std::byte _start_linear; + + /** + * @brief The first byte after the loaded kernel image. + */ + extern "C" std::byte _end_linear; + } // namespace teachos::x86_64::boot +} + +#endif -- cgit v1.2.3