summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-27 12:49:06 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-27 18:54:56 +0200
commite284ee7dcf0fdf5aed84d41060dfabf7097def49 (patch)
treeef946b24da742d551beffbdde455cc0f0c509792 /Kernel/Arch
parentc895780829eba4398c8cca74bcccc460dc0839d8 (diff)
downloadserenity-e284ee7dcf0fdf5aed84d41060dfabf7097def49.zip
Kernel: Fix whack formatting of the CPUID constructor
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/x86/CPUID.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Kernel/Arch/x86/CPUID.h b/Kernel/Arch/x86/CPUID.h
index 6f677ff8ca..a203c67c44 100644
--- a/Kernel/Arch/x86/CPUID.h
+++ b/Kernel/Arch/x86/CPUID.h
@@ -16,9 +16,13 @@ namespace Kernel {
class CPUID {
public:
- explicit CPUID(u32 function, u32 ecx = 0) { asm volatile("cpuid"
- : "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
- : "a"(function), "c"(ecx)); }
+ explicit CPUID(u32 function, u32 ecx = 0)
+ {
+ asm volatile("cpuid"
+ : "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
+ : "a"(function), "c"(ecx));
+ }
+
u32 eax() const { return m_eax; }
u32 ebx() const { return m_ebx; }
u32 ecx() const { return m_ecx; }