diff --git a/src/data.rs b/src/data.rs index 36959db060..58f7b0ccba 100644 --- a/src/data.rs +++ b/src/data.rs @@ -369,3 +369,7 @@ pub struct Sigcontrol { pub saved_ip: SyncUnsafeCell, pub saved_sp: SyncUnsafeCell, } + +pub fn sig_bit(sig: usize) -> u64 { + 1 << (sig - 1) +}