git: cd1e479361bf - stable/15 - amd/int0x80 test: fix inline asm for gcc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 May 2026 00:57:08 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd1e479361bf3919019f27f28a4314449b30c764
commit cd1e479361bf3919019f27f28a4314449b30c764
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2026-05-04 16:34:41 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-05-14 00:48:03 +0000
amd/int0x80 test: fix inline asm for gcc
(cherry picked from commit d5728351a58b87764f3302eb8c4ca9f35e99e8b6)
---
tests/sys/arch/amd64/int0x80.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/sys/arch/amd64/int0x80.c b/tests/sys/arch/amd64/int0x80.c
index e03462a6dccd..fbe98fb341a1 100644
--- a/tests/sys/arch/amd64/int0x80.c
+++ b/tests/sys/arch/amd64/int0x80.c
@@ -46,12 +46,13 @@ fire(void)
{
int res;
+ res = SYS_getpid;
asm volatile(
".globl\tafter_int0x80\n"
"\tint\t$0x80\n"
"after_int0x80:"
- : "=a" (res)
- : "%0" (SYS_getpid)
+ : "+a" (res)
+ :
: "rdx", "memory", "cc");
return (res);
}