aboutsummaryrefslogtreecommitdiff
path: root/source/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-11 14:43:50 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-11 14:43:50 +0200
commit74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 (patch)
tree3a38f8dbe0c6b757167bc264cb68e3da145bd069 /source/arch/x86_64/include
parentf47bee5f51a73593d3594940663f56f2427f480b (diff)
downloadteachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.tar.xz
teachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.zip
teachos: restructure file layout
Diffstat (limited to 'source/arch/x86_64/include')
-rw-r--r--source/arch/x86_64/include/arch/boot/pointers.hpp12
-rw-r--r--source/arch/x86_64/include/arch/kernel/main.hpp11
-rw-r--r--source/arch/x86_64/include/arch/video/vga/text.hpp12
3 files changed, 35 insertions, 0 deletions
diff --git a/source/arch/x86_64/include/arch/boot/pointers.hpp b/source/arch/x86_64/include/arch/boot/pointers.hpp
new file mode 100644
index 0000000..052b115
--- /dev/null
+++ b/source/arch/x86_64/include/arch/boot/pointers.hpp
@@ -0,0 +1,12 @@
+#ifndef TEACHOS_ARCH_X86_64_BOOT_POINTERS_HPP
+#define TEACHOS_ARCH_X86_64_BOOT_POINTERS_HPP
+
+#include <cstddef>
+
+namespace teachos::arch::boot
+{
+ extern "C" std::byte const multiboot_information_pointer;
+ extern "C" std::byte * vga_buffer_pointer;
+} // namespace teachos::arch::boot
+
+#endif \ No newline at end of file
diff --git a/source/arch/x86_64/include/arch/kernel/main.hpp b/source/arch/x86_64/include/arch/kernel/main.hpp
new file mode 100644
index 0000000..6961594
--- /dev/null
+++ b/source/arch/x86_64/include/arch/kernel/main.hpp
@@ -0,0 +1,11 @@
+#ifndef TEACHOS_ARCH_X86_64_KERNEL_MAIN_HPP
+#define TEACHOS_ARCH_X86_64_KERNEL_MAIN_HPP
+
+#include <cstddef>
+
+namespace teachos::arch::kernel
+{
+ auto main() -> void;
+}
+
+#endif \ No newline at end of file
diff --git a/source/arch/x86_64/include/arch/video/vga/text.hpp b/source/arch/x86_64/include/arch/video/vga/text.hpp
new file mode 100644
index 0000000..04b74d1
--- /dev/null
+++ b/source/arch/x86_64/include/arch/video/vga/text.hpp
@@ -0,0 +1,12 @@
+#ifndef TEACHOS_ARCH_X86_64_VIDEO_VGA_TEXT_HPP
+#define TEACHOS_ARCH_X86_64_VIDEO_VGA_TEXT_HPP
+
+#include <cstddef>
+#include <string_view>
+
+namespace teachos::arch::video::vga::text
+{
+ auto write(std::string_view text, std::byte color) -> void;
+}
+
+#endif \ No newline at end of file