summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2023-01-25 17:11:22 +0100
committerLinus Groh <mail@linusgroh.de>2023-01-27 20:47:08 +0000
commit171a8ca478d875af9e54430b11617907cc469995 (patch)
treeae9a11efdc2fea677b0845ed1ae95c06d1391b04
parent12322670cba4ff85d5b3e0c1b15d32c5fede1422 (diff)
downloadserenity-171a8ca478d875af9e54430b11617907cc469995.zip
Kernel/aarch64: Implement Processor::platform_string()
-rw-r--r--Kernel/Arch/aarch64/Processor.cpp5
-rw-r--r--Kernel/Arch/aarch64/Processor.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/Arch/aarch64/Processor.cpp b/Kernel/Arch/aarch64/Processor.cpp
index 3d56148805..c97d1ef4cf 100644
--- a/Kernel/Arch/aarch64/Processor.cpp
+++ b/Kernel/Arch/aarch64/Processor.cpp
@@ -421,4 +421,9 @@ extern "C" void enter_thread_context(Thread* from_thread, Thread* to_thread)
Processor::restore_critical(in_critical);
}
+StringView Processor::platform_string()
+{
+ return "aarch64"sv;
+}
+
}
diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h
index a21739702e..68db2412d1 100644
--- a/Kernel/Arch/aarch64/Processor.h
+++ b/Kernel/Arch/aarch64/Processor.h
@@ -279,6 +279,8 @@ public:
void enter_trap(TrapFrame& trap, bool raise_irq);
void exit_trap(TrapFrame& trap);
+ static StringView platform_string();
+
private:
Processor(Processor const&) = delete;