diff options
| author | Ryan Libby <rlibby@FreeBSD.org> | 2026-05-04 16:34:41 +0000 |
|---|---|---|
| committer | Ryan Libby <rlibby@FreeBSD.org> | 2026-05-04 16:34:41 +0000 |
| commit | d5728351a58b87764f3302eb8c4ca9f35e99e8b6 (patch) | |
| tree | bd97103e41e407c2e8398b607948ed404a9cecfc | |
| parent | 36b399f55e3fa16063188b6f8ad8eaaf8c2215ab (diff) | |
| -rw-r--r-- | tests/sys/arch/amd64/int0x80.c | 5 |
1 files 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); } |
