1; Latency accounting may run only with IRQs masked and kernel GS active.
2%ifdef PEDIGREE_LATENCY_ACCOUNTING
3extern pedigree_irq_time_state
6; Preserve the surrounding assembly ABI when no
public register frame exists.
7;
"rflags" reads the target flags at the original RSP plus the optional offset.
8%macro IRQ_TIME_STATE 1-2 0
9%ifdef PEDIGREE_LATENCY_ACCOUNTING
31 call pedigree_irq_time_state wrt ..plt