git: d5728351a58b - main - amd/int0x80 test: fix inline asm for gcc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 May 2026 16:57:35 UTC
The branch main has been updated by rlibby:
URL: https://cgit.FreeBSD.org/src/commit/?id=d5728351a58b87764f3302eb8c4ca9f35e99e8b6
commit d5728351a58b87764f3302eb8c4ca9f35e99e8b6
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2026-05-04 16:34:41 +0000
Commit: Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2026-05-04 16:34:41 +0000
amd/int0x80 test: fix inline asm for gcc
Gcc complained about the unused %0 asm argument.
Fixes: 2c2ec6bbc9cc ("tests/sys/arch/amd64: add a program to check INT $0x80 behavior on amd64")
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D56781
---
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);
}