From 25483b7af8df6b08d460f807fda04c6d409bd44e Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 14 Jul 2025 16:02:43 +0000 Subject: ide: start large-scale restructuring --- arch/CMakeLists.txt | 17 +++++++++++++++++ arch/include/arch/io.hpp | 9 +++++++++ arch/include/arch/memory.hpp | 9 +++++++++ arch/include/arch/system.hpp | 9 +++++++++ 4 files changed, 44 insertions(+) create mode 100644 arch/CMakeLists.txt create mode 100644 arch/include/arch/io.hpp create mode 100644 arch/include/arch/memory.hpp create mode 100644 arch/include/arch/system.hpp (limited to 'arch') diff --git a/arch/CMakeLists.txt b/arch/CMakeLists.txt new file mode 100644 index 0000000..3bdc3c2 --- /dev/null +++ b/arch/CMakeLists.txt @@ -0,0 +1,17 @@ +add_library("arch-all" INTERFACE) +add_library("arch::all" ALIAS "arch-all") + +target_sources("arch-all" INTERFACE + FILE_SET HEADERS + BASE_DIRS "include" + FILES + "include/arch/io.hpp" + "include/arch/memory.hpp" + "include/arch/system.hpp" +) + +target_include_directories("arch-all" INTERFACE + "include" +) + +# add_subdirectory("${CMAKE_SYSTEM_PROCESSOR}") diff --git a/arch/include/arch/io.hpp b/arch/include/arch/io.hpp new file mode 100644 index 0000000..8986b9c --- /dev/null +++ b/arch/include/arch/io.hpp @@ -0,0 +1,9 @@ +#ifndef TEACHOS_ARCH_IO_HPP +#define TEACHOS_ARCH_IO_HPP + +namespace teachos::arch::io +{ + auto init() -> void; +} + +#endif diff --git a/arch/include/arch/memory.hpp b/arch/include/arch/memory.hpp new file mode 100644 index 0000000..33f7fdd --- /dev/null +++ b/arch/include/arch/memory.hpp @@ -0,0 +1,9 @@ +#ifndef TEACHOS_ARCH_MEMORY_HPP +#define TEACHOS_ARCH_MEMORY_HPP + +namespace teachos::arch::memory +{ + auto init() -> void; +} + +#endif diff --git a/arch/include/arch/system.hpp b/arch/include/arch/system.hpp new file mode 100644 index 0000000..73e2463 --- /dev/null +++ b/arch/include/arch/system.hpp @@ -0,0 +1,9 @@ +#ifndef TEACHOS_ARCH_SYSTEM_HPP +#define TEACHOS_ARCH_SYSTEM_HPP + +namespace teachos::arch::system +{ + [[noreturn]] auto halt() -> void; +} + +#endif -- cgit v1.2.3