mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Kernel: Fix whack formatting of the CPUID constructor
This commit is contained in:
parent
c895780829
commit
e284ee7dcf
1 changed files with 7 additions and 3 deletions
|
@ -16,9 +16,13 @@ namespace Kernel {
|
||||||
|
|
||||||
class CPUID {
|
class CPUID {
|
||||||
public:
|
public:
|
||||||
explicit CPUID(u32 function, u32 ecx = 0) { asm volatile("cpuid"
|
explicit CPUID(u32 function, u32 ecx = 0)
|
||||||
: "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
|
{
|
||||||
: "a"(function), "c"(ecx)); }
|
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 eax() const { return m_eax; }
|
||||||
u32 ebx() const { return m_ebx; }
|
u32 ebx() const { return m_ebx; }
|
||||||
u32 ecx() const { return m_ecx; }
|
u32 ecx() const { return m_ecx; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue