We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c895780 commit e284ee7Copy full SHA for e284ee7
Kernel/Arch/x86/CPUID.h
@@ -16,9 +16,13 @@ namespace Kernel {
16
17
class CPUID {
18
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)); }
+ explicit CPUID(u32 function, u32 ecx = 0)
+ {
+ asm volatile("cpuid"
22
+ : "=a"(m_eax), "=b"(m_ebx), "=c"(m_ecx), "=d"(m_edx)
23
+ : "a"(function), "c"(ecx));
24
+ }
25
+
26
u32 eax() const { return m_eax; }
27
u32 ebx() const { return m_ebx; }
28
u32 ecx() const { return m_ecx; }
0 commit comments