Use __asm__ to comply with disabled GNU extensions
All checks were successful
Builds / ExectOS (i686, debug) (push) Successful in 25s
Builds / ExectOS (amd64, debug) (push) Successful in 41s
Builds / ExectOS (i686, release) (push) Successful in 37s
Builds / ExectOS (amd64, release) (push) Successful in 20s

This commit is contained in:
2025-08-15 11:07:07 +02:00
committed by CodingWorkshop Signing Team
parent 030575592c
commit 2e0a87e596
8 changed files with 503 additions and 503 deletions

View File

@@ -27,16 +27,16 @@ VOID
MmZeroPages(IN PVOID Address,
IN ULONG Size)
{
asm volatile("xor %%rax, %%rax\n"
"mov %0, %%rdi\n"
"mov %1, %%ecx\n"
"shr $3, %%ecx\n"
"rep stosq\n"
:
: "m" (Address),
"m" (Size)
: "rax",
"rdi",
"ecx",
"memory");
__asm__ volatile("xor %%rax, %%rax\n"
"mov %0, %%rdi\n"
"mov %1, %%ecx\n"
"shr $3, %%ecx\n"
"rep stosq\n"
:
: "m" (Address),
"m" (Size)
: "rax",
"rdi",
"ecx",
"memory");
}