Page MenuHomeFreeBSD

amd/int0x80 test: fix inline asm for gcc
ClosedPublic

Authored by rlibby on Mon, May 4, 8:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 23, 2:42 AM
Unknown Object (File)
Sat, May 23, 12:34 AM
Unknown Object (File)
Thu, May 21, 4:59 PM
Unknown Object (File)
Thu, May 21, 4:46 PM
Unknown Object (File)
Tue, May 19, 12:39 PM
Unknown Object (File)
Tue, May 12, 11:28 AM
Unknown Object (File)
Tue, May 12, 11:28 AM
Unknown Object (File)
Tue, May 12, 9:38 AM
Subscribers

Details

Summary

Gcc complained about the unused %0 asm argument.

Fixes: 2c2ec6bbc9cc ("tests/sys/arch/amd64: add a program to check INT $0x80 behavior on amd64")


Gcc's error is not super clear but removing the unused input operand solved it.

/usr/src/freebsd/tests/sys/arch/amd64/int0x80.c: In function 'fire':
/usr/src/freebsd/tests/sys/arch/amd64/int0x80.c:55:13: error: '%' constraint used with last operand
   55 |             : "rdx", "memory", "cc");
      |             ^
Test Plan

make buildworld && env MAKEOBJDIRPREFIX=/usr/obj/gcc14 CROSS_TOOLCHAIN=amd64-gcc14 make buildworld

Checked object dump for both clang and gcc builds for

mov $14,%eax
int $0x80

Ran test with default clang build:

kyua test -k /usr/tests/sys/arch/Kyuafile

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rlibby requested review of this revision.Mon, May 4, 8:23 AM
rlibby edited the test plan for this revision. (Show Details)
rlibby added reviewers: kib, markj.
rlibby edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Mon, May 4, 8:36 AM
This revision was automatically updated to reflect the committed changes.