summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-02-21 07:58:57 -0800
committerAndreas Kling <kling@serenityos.org>2021-02-21 17:06:24 +0100
commit26bba8e10042f3ff179b46857544a263231e6b84 (patch)
tree75bd0df8a3d0794ba1ea092407b92458ff36b938 /Kernel/Arch
parent1e3a6ba5723048264e7071d34cbe81adf4d7b3fe (diff)
downloadserenity-26bba8e10042f3ff179b46857544a263231e6b84.zip
Kernel: Populate ELF::AuxilaryValue::Platform from Processor object.
Move this to the processor object so it can easily be implemented when Serenity is compiled for a different architecture.
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/i386/CPU.cpp5
-rw-r--r--Kernel/Arch/i386/CPU.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp
index 4c8031e560..8c0cc390e1 100644
--- a/Kernel/Arch/i386/CPU.cpp
+++ b/Kernel/Arch/i386/CPU.cpp
@@ -1013,6 +1013,11 @@ String Processor::features_string() const
return builder.build();
}
+String Processor::platform_string() const
+{
+ return "i386";
+}
+
UNMAP_AFTER_INIT void Processor::early_initialize(u32 cpu)
{
m_self = this;
diff --git a/Kernel/Arch/i386/CPU.h b/Kernel/Arch/i386/CPU.h
index 90e7e73e23..054750675b 100644
--- a/Kernel/Arch/i386/CPU.h
+++ b/Kernel/Arch/i386/CPU.h
@@ -1069,6 +1069,8 @@ public:
static Vector<FlatPtr> capture_stack_trace(Thread& thread, size_t max_frames = 0);
void set_thread_specific(u8* data, size_t len);
+
+ String platform_string() const;
};
class ScopedCritical {