aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-23 13:52:28 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-23 13:52:28 +0000
commitbe5c7e992ef3f7827e7229d77af3f812484de260 (patch)
tree25cb4767472b2a7e09b9906c6db62f4e8e65eaf7 /arch/x86_64/include
parent29f0e6ad021997e4b6995de4f795781ac381f697 (diff)
downloadteachos-be5c7e992ef3f7827e7229d77af3f812484de260.tar.xz
teachos-be5c7e992ef3f7827e7229d77af3f812484de260.zip
x86_64: extract linker script interface header
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/x86_64/boot/ld.hpp22
1 files changed, 22 insertions, 0 deletions
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 <cstddef>
+
+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