don't cast smapi_port in inline assembly

the generated assembly looks identical with and without the cast on
GCC-13

Fixes: #41
This commit is contained in:
Evgeni Golov 2023-08-06 14:41:03 +02:00
parent 83ca2107dc
commit a4db4b9cc2

View File

@ -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");