Skip to content
Draft
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
10 changes: 10 additions & 0 deletions litebox_platform_windows_userland/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ unsafe extern "C-unwind" fn run_thread_inner(
// At entry, the register context is the guest context with the
// return address in rcx. r11 is an available scratch register (it would
// contain rflags if the syscall instruction had actually been issued).
.globl syscall_callback
syscall_callback:
// Get the TLS state from the TLS slot and clear the in-guest flag.
mov r11d, DWORD PTR [rip + {TLS_INDEX}]
Expand Down Expand Up @@ -928,6 +929,15 @@ impl litebox::platform::PunchthroughToken for PunchthroughToken {
eprintln!("WARNING: ignoring RtSigprocmask punchthrough");
Ok(0)
}
PunchthroughSyscall::RtSigaction {
signum,
act: _,
oldact: _,
} => {
// Ignored for now.
eprintln!("WARNING: ignoring RtSigaction punchthrough for signum={signum:?}");
Ok(0)
}
p => {
unimplemented!("unimplemented PunchthroughToken for WindowsUserland: {p:?}");
}
Expand Down
Loading