Skip to content

Commit

Permalink
don't cast smapi_port in inline assembly
Browse files Browse the repository at this point in the history
the generated assembly looks identical with and without the cast on
GCC-13

Fixes: #41
  • Loading branch information
evgeni committed May 20, 2024
1 parent 83ca210 commit a4db4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tp_smapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int smapi_request(u32 inEBX, u32 inECX,
"=m"(tmpEDI),
"=m"(tmpESI)
:"m"(inEBX), "m"(inECX), "m"(inEDI), "m"(inESI),
"m"((u16)smapi_port)
"m"(smapi_port)
:"%eax", "%ebx", "%ecx", "%edx", "%edi",
"%esi");

Expand Down

0 comments on commit a4db4b9

Please sign in to comment.