mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Fix whack formatting of the CPUID constructor
This commit is contained in:
committed by
Andreas Kling
parent
c895780829
commit
e284ee7dcf
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user