diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 16:02:43 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 16:02:43 +0000 |
| commit | 25483b7af8df6b08d460f807fda04c6d409bd44e (patch) | |
| tree | 2001f9774fe179dd4a67c77f590aa7ee1406fb87 /arch | |
| parent | 1b603d1145b9ee10b1b12a0f765bd2bc1ebe2b3c (diff) | |
| download | teachos-25483b7af8df6b08d460f807fda04c6d409bd44e.tar.xz teachos-25483b7af8df6b08d460f807fda04c6d409bd44e.zip | |
ide: start large-scale restructuring
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/CMakeLists.txt | 17 | ||||
| -rw-r--r-- | arch/include/arch/io.hpp | 9 | ||||
| -rw-r--r-- | arch/include/arch/memory.hpp | 9 | ||||
| -rw-r--r-- | arch/include/arch/system.hpp | 9 |
4 files changed, 44 insertions, 0 deletions
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 |
