diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-08-29 10:32:29 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-08-29 10:33:13 +0200 |
| commit | 1e24d2b3cd4315fff4177c593bcfeef5b354f612 (patch) | |
| tree | d0b6900340d62e85d4b06b3887f18285a6bd4cf1 /arch/x86_64 | |
| parent | 96065f10752e4fbcf2e36e277be08eb9e9857011 (diff) | |
| download | kernel-1e24d2b3cd4315fff4177c593bcfeef5b354f612.tar.xz kernel-1e24d2b3cd4315fff4177c593bcfeef5b354f612.zip | |
chore: apply stylistic cleanups
Diffstat (limited to 'arch/x86_64')
| -rw-r--r-- | arch/x86_64/arch/cpu/task_state_segment.hpp | 30 | ||||
| -rw-r--r-- | arch/x86_64/kapi/devices.cpp | 3 |
2 files changed, 17 insertions, 16 deletions
diff --git a/arch/x86_64/arch/cpu/task_state_segment.hpp b/arch/x86_64/arch/cpu/task_state_segment.hpp index 57729dd6..373fb8af 100644 --- a/arch/x86_64/arch/cpu/task_state_segment.hpp +++ b/arch/x86_64/arch/cpu/task_state_segment.hpp @@ -8,21 +8,21 @@ namespace arch::cpu struct [[gnu::packed]] task_state_segment { - uint32_t : 32; - uint64_t rsp0 = {}; - uint64_t rsp1 = {}; - uint64_t rsp2 = {}; - uint64_t : 64; - uint64_t ist1 = {}; - uint64_t ist2 = {}; - uint64_t ist3 = {}; - uint64_t ist4 = {}; - uint64_t ist5 = {}; - uint64_t ist6 = {}; - uint64_t ist7 = {}; - uint64_t : 64; - uint16_t : 16; - uint16_t io_map_base_address = {}; + std::uint32_t : 32; + std::uint64_t rsp0 = {}; + std::uint64_t rsp1 = {}; + std::uint64_t rsp2 = {}; + std::uint64_t : 64; + std::uint64_t ist1 = {}; + std::uint64_t ist2 = {}; + std::uint64_t ist3 = {}; + std::uint64_t ist4 = {}; + std::uint64_t ist5 = {}; + std::uint64_t ist6 = {}; + std::uint64_t ist7 = {}; + std::uint64_t : 64; + std::uint16_t : 16; + std::uint16_t io_map_base_address = {}; }; } // namespace arch::cpu diff --git a/arch/x86_64/kapi/devices.cpp b/arch/x86_64/kapi/devices.cpp index 888b6e20..1e2fedd6 100644 --- a/arch/x86_64/kapi/devices.cpp +++ b/arch/x86_64/kapi/devices.cpp @@ -11,6 +11,7 @@ #include <ranges> #include <span> +#include <utility> namespace kapi::devices { @@ -39,7 +40,7 @@ namespace kapi::devices { auto instance = driver->make_instance(); kstd::println("[x86_64:DRV] registering driver '{}' ({})", instance->name(), driver->name()); - kapi::devices::driver_registry::get().add(driver->make_instance()); + kapi::devices::driver_registry::get().add(std::move(instance)); } } |
