Skip to content

Commit 1e4c5a4

Browse files
committed
[guest/fxn_call] change the ABI of the dispatch_function
Similar to the entrypoint change in the previous commit, we can change the ABI of the dispatch function. Signed-off-by: danbugs <[email protected]>
1 parent c685371 commit 1e4c5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hyperlight_guest/src/guest_function_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn internal_dispatch_function() -> Result<()> {
9797
// This is implemented as a separate function to make sure that epilogue in the internal_dispatch_function is called before the halt()
9898
// which if it were included in the internal_dispatch_function cause the epilogue to not be called because the halt() would not return
9999
// when running in the hypervisor.
100-
pub(crate) extern "win64" fn dispatch_function() {
100+
pub(crate) extern "C" fn dispatch_function() {
101101
let _ = internal_dispatch_function();
102102
halt();
103103
}

0 commit comments

Comments
 (0)