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")
|
asm!(include_str!("init.s")
|
||||||
: "={eax}"(sp)
|
: "={eax}"(sp)
|
||||||
: "{eax}" (sp),
|
: "{eax}" (sp),
|
||||||
"{ebx}" (rust_trampoline::<F>),
|
"{ebx}" (rust_trampoline::<F> as unsafe extern "C" fn(*const F) -> !),
|
||||||
"{ecx}" (f_ptr)
|
"{ecx}" (f_ptr)
|
||||||
:
|
:
|
||||||
: "volatile");
|
: "volatile");
|
||||||
|
|
|
@ -22,7 +22,7 @@ impl Registers {
|
||||||
asm!(include_str!("init.s")
|
asm!(include_str!("init.s")
|
||||||
: "={rdi}"(sp)
|
: "={rdi}"(sp)
|
||||||
: "{rdi}" (sp),
|
: "{rdi}" (sp),
|
||||||
"{rsi}" (rust_trampoline::<F>),
|
"{rsi}" (rust_trampoline::<F> as unsafe extern "C" fn(*const F) -> !),
|
||||||
"{rdx}" (f_ptr)
|
"{rdx}" (f_ptr)
|
||||||
:
|
:
|
||||||
: "volatile");
|
: "volatile");
|
||||||
|
|
Loading…
Reference in New Issue