Skip to content

Commit e284ee7

Browse files
linusgawesomekling
authored andcommitted
Kernel: Fix whack formatting of the CPUID constructor
1 parent c895780 commit e284ee7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Kernel/Arch/x86/CPUID.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ namespace Kernel {
1616

1717
class CPUID {
1818
public:
19-
explicit CPUID(u32 function, u32 ecx = 0) { asm volatile("cpuid"
20-
: "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
21-
: "a"(function), "c"(ecx)); }
19+
explicit CPUID(u32 function, u32 ecx = 0)
20+
{
21+
asm volatile("cpuid"
22+
: "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
23+
: "a"(function), "c"(ecx));
24+
}
25+
2226
u32 eax() const { return m_eax; }
2327
u32 ebx() const { return m_ebx; }
2428
u32 ecx() const { return m_ecx; }

0 commit comments

Comments
 (0)