Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl VMContinuationStack {

let to_store = [
// Data near top of stack:
(0x08, (wasmtime_continuation_start as *const ()).addr()),
(0x08, wasmtime_continuation_start_address().addr()),
(0x10, tos.sub(0x10).addr()),
(0x18, tos.sub(0x40 + args_data_size).addr()),
(0x20, usize::try_from(args_capacity).unwrap()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

use core::arch::naked_asm;

#[inline(never)] // FIXME(rust-lang/rust#148307)
pub fn wasmtime_continuation_start_address() -> *const () {
wasmtime_continuation_start as *const ()
}

// This is a pretty special function that has no real signature. Its use is to
// be the "base" function of all fibers. This entrypoint is used in
// `wasmtime_continuation_init` to bootstrap the execution of a new fiber.
Expand Down