Date: Thu, 14 May 2026 00:57:08 +0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ryan Libby <rlibby@FreeBSD.org> Subject: git: cd1e479361bf - stable/15 - amd/int0x80 test: fix inline asm for gcc Message-ID: <6a051de4.21d60.19c6081@gitrepo.freebsd.org>
index | next in thread | raw e-mail
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); }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a051de4.21d60.19c6081>
