aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/arch/bus/cpu.hpp4
-rw-r--r--kernel/kernel/devices/pseudo.cpp5
-rw-r--r--kernel/kernel/drivers/init.cpp3
3 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86_64/arch/bus/cpu.hpp b/arch/x86_64/arch/bus/cpu.hpp
index 22afb4ae..40181b06 100644
--- a/arch/x86_64/arch/bus/cpu.hpp
+++ b/arch/x86_64/arch/bus/cpu.hpp
@@ -28,7 +28,7 @@ namespace arch::bus
[[nodiscard]] virtual auto hardware_id() const noexcept -> std::uint64_t = 0;
};
- //! The claim facet used to match ISA drivers.
+ //! The claim facet used to match CPU core drivers.
struct core_claim
{
//! The ID of this facet
@@ -73,4 +73,4 @@ namespace arch::bus
} // namespace arch::bus
-#endif // TEACHOS_X86_64_BUS_ISA_HPP
+#endif // TEACHOS_X86_64_BUS_CPU_HPP
diff --git a/kernel/kernel/devices/pseudo.cpp b/kernel/kernel/devices/pseudo.cpp
index 91fff661..13a8be3d 100644
--- a/kernel/kernel/devices/pseudo.cpp
+++ b/kernel/kernel/devices/pseudo.cpp
@@ -12,11 +12,6 @@
namespace kernel::devices
{
- namespace
- {
-
- }; // namespace
-
pseudo::pseudo(kstd::string name)
: kapi::devices::device{std::move(name)}
{}
diff --git a/kernel/kernel/drivers/init.cpp b/kernel/kernel/drivers/init.cpp
index 97d8f0bc..f0e78593 100644
--- a/kernel/kernel/drivers/init.cpp
+++ b/kernel/kernel/drivers/init.cpp
@@ -8,6 +8,7 @@
#include <ranges>
#include <span>
+#include <utility>
namespace kernel::drivers
{
@@ -35,7 +36,7 @@ namespace kernel::drivers
{
auto instance = driver->make_instance();
kstd::println("[OS:DRV] registering driver '{}' ({})", instance->name(), driver->name());
- registry.add(driver->make_instance());
+ registry.add(std::move(instance));
}
}