From 74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 11 Oct 2023 14:43:50 +0200 Subject: teachos: restructure file layout --- source/arch/x86_64/include/arch/boot/pointers.hpp | 12 ++++++++++++ source/arch/x86_64/include/arch/kernel/main.hpp | 11 +++++++++++ source/arch/x86_64/include/arch/video/vga/text.hpp | 12 ++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 source/arch/x86_64/include/arch/boot/pointers.hpp create mode 100644 source/arch/x86_64/include/arch/kernel/main.hpp create mode 100644 source/arch/x86_64/include/arch/video/vga/text.hpp (limited to 'source/arch/x86_64/include') 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 + +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 + +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 +#include + +namespace teachos::arch::video::vga::text +{ + auto write(std::string_view text, std::byte color) -> void; +} + +#endif \ No newline at end of file -- cgit v1.2.3