Home
last modified time | relevance | path

Searched refs:host_sa (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_signal_action.cc48 void ConvertHostSigactionToGuest(const HostStructSigaction* host_sa, Guest_sigaction* guest_sa) { in ConvertHostSigactionToGuest() argument
49 guest_sa->guest_sa_sigaction = WrapHostSigactionForGuest(*host_sa); in ConvertHostSigactionToGuest()
52 if (bool(host_sa->sa_flags & SA_RESTORER)) { in ConvertHostSigactionToGuest()
55 if (host_sa->sa_restorer) { in ConvertHostSigactionToGuest()
56 const char* handler = bit_cast<const char*>(host_sa->sa_restorer); in ConvertHostSigactionToGuest()
72 guest_sa->sa_flags = host_sa->sa_flags & ~SA_RESTORER; in ConvertHostSigactionToGuest()
74 ConvertToSmallSigset(host_sa->sa_mask, &guest_sa->sa_mask); in ConvertHostSigactionToGuest()
79 HostStructSigaction* host_sa) { in ConvertGuestSigactionToHost() argument
85 host_sa->sa_sigaction = nullptr; in ConvertGuestSigactionToHost()
87 host_sa->sa_sigaction = reinterpret_cast<GuestSignalAction::host_sa_sigaction_t>(func); in ConvertGuestSigactionToHost()
[all …]
Dguest_signal_action_arch.cc29 GuestAddr WrapHostSigactionForGuest(const HostStructSigaction& host_sa) { in WrapHostSigactionForGuest() argument
30 if (host_sa.sa_flags & SA_SIGINFO) { in WrapHostSigactionForGuest()
31 WrapHostFunction(host_sa.sa_sigaction, "<host-sa_sigaction>"); in WrapHostSigactionForGuest()
32 return ToGuestAddr(host_sa.sa_sigaction); in WrapHostSigactionForGuest()
33 } else if (host_sa.sa_handler == SIG_DFL) { in WrapHostSigactionForGuest()
35 } else if (host_sa.sa_handler == SIG_IGN) { in WrapHostSigactionForGuest()
37 } else if (host_sa.sa_handler == SIG_ERR) { in WrapHostSigactionForGuest()
40 WrapHostFunction(host_sa.sa_handler, "<host-sa_handler>"); in WrapHostSigactionForGuest()
41 return ToGuestAddr(host_sa.sa_handler); in WrapHostSigactionForGuest()
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_signal.h83 GuestAddr WrapHostSigactionForGuest(const HostStructSigaction& host_sa);