diff --git a/sys/x86/include/fpu.h b/sys/x86/include/fpu.h --- a/sys/x86/include/fpu.h +++ b/sys/x86/include/fpu.h @@ -180,6 +180,27 @@ #undef __envxmm32 #undef __envxmm64 +/* + * Intel Processor Trace XSAVE-managed state. + */ +struct pt_ext_area { + uint64_t rtit_ctl; + uint64_t rtit_output_base; + uint64_t rtit_output_mask_ptrs; + uint64_t rtit_status; + uint64_t rtit_cr3_match; + uint64_t rtit_addr0_a; + uint64_t rtit_addr0_b; + uint64_t rtit_addr1_a; + uint64_t rtit_addr1_b; +}; + +struct pt_save_area { + uint8_t legacy_state[512]; + struct xstate_hdr header; + struct pt_ext_area pt_ext_area; +} __aligned(64); + /* * The hardware default control word for i387's and later coprocessors is * 0x37F, giving: