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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/asm/mod.rs

Lines changed: 1 addition & 1 deletion
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)