Skip to content

Commit e5c202c

Browse files
authored
chore: specify sysv64 for the calling convention (#267)
This ensures that the arguments are passed by RDI, RSI, RDX, RCX, etc.
1 parent a122296 commit e5c202c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asm/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[link(name = "x86_64_asm", kind = "static")]
2-
extern "C" {
2+
extern "sysv64" {
33
#[cfg_attr(
44
any(target_env = "gnu", target_env = "musl"),
55
link_name = "_x86_64_asm_interrupt_enable"

0 commit comments

Comments
 (0)