Code formatting
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-05 22:45:52 +01:00
parent 2920c1042a
commit f2b51ff69c
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 26 additions and 22 deletions

View File

@ -43,7 +43,9 @@ HlCpuId(IN OUT PCPUID_REGISTERS Registers)
asm volatile("cpuid" asm volatile("cpuid"
: "=a" (MaxLeaf) : "=a" (MaxLeaf)
: "a" (Registers->Leaf & 0x80000000) : "a" (Registers->Leaf & 0x80000000)
: "rbx", "rcx", "rdx"); : "rbx",
"rcx",
"rdx");
/* Check if CPU supports this command */ /* Check if CPU supports this command */
if(Registers->Leaf > MaxLeaf) if(Registers->Leaf > MaxLeaf)
@ -335,7 +337,7 @@ HlReadTimeStampCounter()
ULONGLONG Low, High; ULONGLONG Low, High;
asm volatile("rdtsc" asm volatile("rdtsc"
:"=a"(Low), : "=a"(Low),
"=d"(High)); "=d"(High));
return ((ULONGLONG)High << 32) | Low; return ((ULONGLONG)High << 32) | Low;

View File

@ -43,7 +43,9 @@ HlCpuId(IN OUT PCPUID_REGISTERS Registers)
asm volatile("cpuid" asm volatile("cpuid"
: "=a" (MaxLeaf) : "=a" (MaxLeaf)
: "a" (Registers->Leaf & 0x80000000) : "a" (Registers->Leaf & 0x80000000)
: "rbx", "rcx", "rdx"); : "rbx",
"rcx",
"rdx");
/* Check if CPU supports this command */ /* Check if CPU supports this command */
if(Registers->Leaf > MaxLeaf) if(Registers->Leaf > MaxLeaf)