forked from M-Labs/libfringe
coerce rust_trampoline to a function pointer properly
This commit is contained in:
parent
644cd81f9e
commit
a50e6771b4
@ -23,7 +23,7 @@ impl Registers {
|
||||
asm!(include_str!("init.s")
|
||||
: "={eax}"(sp)
|
||||
: "{eax}" (sp),
|
||||
"{ebx}" (rust_trampoline::<F>),
|
||||
"{ebx}" (rust_trampoline::<F> as unsafe extern "C" fn(*const F) -> !),
|
||||
"{ecx}" (f_ptr)
|
||||
:
|
||||
: "volatile");
|
||||
|
@ -22,7 +22,7 @@ impl Registers {
|
||||
asm!(include_str!("init.s")
|
||||
: "={rdi}"(sp)
|
||||
: "{rdi}" (sp),
|
||||
"{rsi}" (rust_trampoline::<F>),
|
||||
"{rsi}" (rust_trampoline::<F> as unsafe extern "C" fn(*const F) -> !),
|
||||
"{rdx}" (f_ptr)
|
||||
:
|
||||
: "volatile");
|
||||
|
Loading…
Reference in New Issue
Block a user